Skip to content

v0.7.0

Compare
Choose a tag to compare
@stephannv stephannv released this 09 Sep 20:39
· 30 commits to main since this release

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