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