Method: IsoDoc::HtmlFunction::Html#html_main

Defined in:
lib/isodoc/html_function/html.rb

#html_main(docxml) ⇒ Object



74
75
76
77
78
79
# File 'lib/isodoc/html_function/html.rb', line 74

def html_main(docxml)
  docxml.at("//head").add_child(html_head)
  d = docxml.at('//div[@class="main-section"]')
  d.name = "main"
  d.children.empty? or d.children.first.previous = html_button
end