Method: IsoDoc::Function::Lists#li_parse

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

#li_parse(node, out) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/isodoc/function/lists.rb', line 61

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