Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/stephannv/blueprint

Write HTML in plain Crystal
https://github.com/stephannv/blueprint

crystal dsl hacktoberfest html oop

Last synced: about 2 months ago
JSON representation

Write HTML in plain Crystal

Lists

README

        




Blueprint logo



A framework for writing reusable and testable HTML templates in plain Crystal.


Tests & Code Format
Weekly CI

------

Example:
```crystal
class Alert
include Blueprint::HTML

private def blueprint
div class: "alert alert-success" do
h4(class: "alert-heading") { "Well done!" }
p { "Hello Word" }
end
end
end

Alert.new.to_html
```

Output:
```html


Well done!


Hello World



```

## Documentation

For full documentation, visit .

## Contributing

1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request