Method: IsoDoc::HtmlFunction::Html#html_intro

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

#html_intro(docxml) ⇒ Object



88
89
90
91
92
93
94
# File 'lib/isodoc/html_function/postprocess_cover.rb', line 88

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(
    populate_template(doc.to_xml(encoding: "US-ASCII"), :html),
  )
end