In: |
lib/Borges/HTML/HtmlBuilder.rb
|
Parent: | Object |
Borges::HTMLBuilder is a generic class for outputting HTML.
HTML_CHARACTERS | = | {} |
attributes | [R] | |
document | [RW] |
Turn an object into a string and encode it with HTML entities.
encode_text("foo > bar")
foo > bar
Build an unordered list of items from an Enumerable. text will be called on each item.
list(["x", 5, { :x => :y }])
<ul><li>x<li>5<li>xy</ul>
Build an unordered list of items from an Enumerable. The given block will be called on each item.
See also list