Sub
Parameters
text (optional)
HMTL attributes (optional)
Examples
Example 1: Yield a given block
sub id: "foo", class: "bar" do
plain 'Hello World' # optional content
end<sub id="foo" class="bar">
Hello World
</sub>Example 2: Render options[:text] param
Last updated
Was this helpful?