Method: IsoDoc::Function::Lists#li_parse

Defined in:
lib/isodoc/function/lists.rb

#li_parse(node, out) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/isodoc/function/lists.rb', line 52

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