Lists
Parameters
id (optional)
class (optional)
text (optional)
Example 1
ol id: "foo" do
li text: "bar"
endExample 2
Example 3
Last updated
Was this helpful?
ol id: "foo" do
li text: "bar"
endLast updated
Was this helpful?
Was this helpful?
<ol id="foo">
<li>bar</li>
</ol>@base = mate
# ...
ul do
li text: "foo"
li do
plain "bar"
end
li do
plain @base
end
end<ul>
<li>foo</li>
<li>bar</li>
<li>mate</li>
</ul>@users = ["Jonas", "Pascal", "Chris"]
# ...
ul do
@users.each do |user|
li text: user
end
end<ul>
<li>Jonas</li>
<li>Pascal</li>
<li>Chris</li>
</ul>