Method: IsoDoc::HtmlFunction::Html#html_intro

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

#html_intro(docxml) ⇒ Object



91
92
93
94
95
96
97
98
# File 'lib/isodoc/html_function/postprocess_cover.rb', line 91

def html_intro(docxml)
  doc = to_xhtml_fragment(File.read(@htmlintropage, encoding: "UTF-8"))
  d = docxml.at('//div[@class="prefatory-section"]')
  #d.children.first.add_previous_sibling(
  d.add_first_child(
    populate_template(doc.to_xml(encoding: "US-ASCII"), :html),
  )
end