Method: IsoDoc::Function::Lists#li_parse
- Defined in:
- lib/isodoc/function/lists.rb
#li_parse(node, out) ⇒ Object
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/isodoc/function/lists.rb', line 44 def li_parse(node, out) out.li **attr_code(id: node["id"]) do |li| if node["uncheckedcheckbox"] == "true" li << '<span class="zzMoveToFollowing"><input type="checkbox" checked="checked"/></span>' elsif node["checkedcheckbox"] == "true" li << '<span class="zzMoveToFollowing"><input type="checkbox"/></span>' end node.children.each { |n| parse(n, li) } end end |