Plain
Parameters
Examples
Example 1: Rendering a string into a <div> tag.
<div> tag.div id: "foo", class: "bar" do
plain "Hello World"
end<div id="foo" class="bar">
Hello World
</div>Example 2: Render a variable into a <div> tag.
<div> tag.@hello = "World"
# ...
div id: "foo", class: "bar" do
plain @hello
endLast updated
Was this helpful?