Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/stephannv/blueprint

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

crystal dsl hacktoberfest html oop

Last synced: 9 days ago
JSON representation

Write HTML in plain Crystal

Awesome Lists containing this project

README

        




Blueprint logo



A lib for writing reusable and testable views templates (HTML, SVG, Forms) in plain Crystal.


Tests
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_s
```

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