Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: Prepare 0.9.0 release #75

Merged
merged 1 commit into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@

All notable changes to this project will be documented on <https://stephannv.github.io/blueprint-docs/>.

# [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
# <form action="/sign-in" method="post">
# <label for="email">Email</label>
# <input type="email" id="email" name="email">
#
# <label for="password">Password</label>
# <input type="password" id="password" name="password">
# </form>
```

More example at docs: https://stephannv.github.io/blueprint-docs/handbook/forms/


# [0.8.0] - 2024-09-14

### Overhauled docs
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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. <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/blueprint/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Blueprint
VERSION = "0.8.0"
VERSION = "0.9.0"
end
Loading