From 3698089f7995e00c97ed7e52a408c1dc689a55b4 Mon Sep 17 00:00:00 2001 From: stephann <3025661+stephannv@users.noreply.github.com> Date: Sat, 21 Sep 2024 10:21:52 -0300 Subject: [PATCH] release: Prepare 0.9.0 release --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ shard.yml | 2 +- src/blueprint/version.cr | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d2b461..940625f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,39 @@ All notable changes to this project will be documented on . +# [0.9.0] - 2024-09-21 + +### Form Builder +Using `#form_builder` you can access some utility methods to build labels and inputs: + +```crystal +class ExamplePage + include Blueprint::HTML + + def blueprint + form_builder action: "/sign-in", method: :post do |form| + form.label :email + form.email_input :email + + form.label :password + form.password_input :password + end + end +end + +puts ExamplePage.new.to_s +#
+# +# +# +# +# +#
+``` + +More example at docs: https://stephannv.github.io/blueprint-docs/handbook/forms/ + + # [0.8.0] - 2024-09-14 ### Overhauled docs diff --git a/shard.yml b/shard.yml index ad7c8dd..da20859 100644 --- a/shard.yml +++ b/shard.yml @@ -2,7 +2,7 @@ name: blueprint description: | A lib for writing reusable and testable views templates (HTML, SVG, Forms) in plain Crystal. Inspired by Phlex. -version: 0.8.0 +version: 0.9.0 authors: - Stephann V. <3025661+stephannv@users.noreply.github.com> diff --git a/src/blueprint/version.cr b/src/blueprint/version.cr index bab014e..da22342 100644 --- a/src/blueprint/version.cr +++ b/src/blueprint/version.cr @@ -1,3 +1,3 @@ module Blueprint - VERSION = "0.8.0" + VERSION = "0.9.0" end