Method: IsoDoc::HtmlFunction::Html#html_main

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

#html_main(docxml) ⇒ Object



69
70
71
72
73
74
# File 'lib/isodoc/html_function/html.rb', line 69

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