Method: IsoDoc::HtmlFunction::Html#html_cover
- Defined in:
- lib/isodoc/html_function/postprocess_cover.rb
#html_cover(docxml) ⇒ Object
80 81 82 83 84 85 86 |
# File 'lib/isodoc/html_function/postprocess_cover.rb', line 80 def html_cover(docxml) doc = to_xhtml_fragment(File.read(@htmlcoverpage, encoding: "UTF-8")) d = docxml.at('//div[@class="title-section"]') d.children.first.add_previous_sibling( populate_template(doc.to_xml(encoding: "US-ASCII"), :html), ) end |