Utils
Helper methods
Blueprint provide some utility methods to help you build your HTML:
#doctype
- adds HTML 5 doctype declaration#plain
- writes plain text on HTML without tags#whitespace
- adds a simple whitespace to HTML#comment
- allows writing HTML comments
Custom tags
You can register custom HTML tags using the register_element
macro. The first
argument is the helper method and the second argument is an optional tag name.
It is possible to use register_void_element
and register_empty_element
in
case if want you elements without closing tags or elements that doesn't accept
content.