v0.7.0
What's Changed
- Allow passing comment via argument
comment "Cool comment here"
- Allow rendering unsafe content using
unsafe_raw
unsafe_raw "<script>alert('Danger!')</script>"
- Add
RawHtml
to priorize performance over safety
require "blueprint/raw_html"
class MyHTML
include Blueprint::RawHTML
def blueprint
div "<script>alert('Danger!')</script>" # this will not be escaped
end
end
- Code refactoring to improve performance
- Fix safety when passing content to elements via argument
Full Changelog: v0.6.0...v0.7.0