Method: IsoDoc::HtmlFunction::Html#html_cover
- Defined in:
- lib/isodoc/html_function/postprocess_cover.rb
#html_cover(docxml) ⇒ Object
82 83 84 85 86 87 88 89 |
# File 'lib/isodoc/html_function/postprocess_cover.rb', line 82 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( d.add_first_child( populate_template(doc.to_xml(encoding: "US-ASCII"), :html), ) end |