Class: Panda::Editor::Blocks::List
- Defined in:
- lib/panda/editor/blocks/list.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Panda::Editor::Blocks::Base
Instance Method Details
#render ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/panda/editor/blocks/list.rb', line 7 def render style = data["style"] || data[:style] list_type = (style == "ordered") ? "ol" : "ul" html_safe( "<#{list_type}>" \ "#{render_items(data["items"] || data[:items] || [])}" \ "</#{list_type}>" ) end |