Sha256: 621fbe51812ec3baaac210fad854bebb2fb4aa1591b2751158f0c9eb9e577c0d
Contents?: true
Size: 1.29 KB
Versions: 40
Compression:
Stored size: 1.29 KB
Contents
require "isodoc" require "isodoc/generic/html_convert" require_relative "base_convert" require_relative "init" module IsoDoc module M3AAWG class HtmlConvert < IsoDoc::Generic::HtmlConvert def configuration Metanorma::M3AAWG.configuration end def initialize(options) #require "byebug"; byebug super end def colophon(body, docxml) body.div **{ class: "colophon" } do |div| div << <<~"COLOPHON" <p>As with all M<sup>3</sup>AAWG documents that we publish, please check the M<sup>3</sup>AAWG website (<a href="http://www.m3aawg.org">www.m3aawg.org</a>) for updates to this paper.</p> <p>© #{@meta.get[:docyear]} copyright by the Messaging, Malware and Mobile Anti-Abuse Working Group (M<sup>3</sup>AAWG)</p> COLOPHON end end def make_body(xml, docxml) body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" } xml.body **body_attr do |body| make_body1(body, docxml) make_body2(body, docxml) make_body3(body, docxml) colophon(body, docxml) end end include BaseRender include Init end end end
Version data entries
40 entries across 40 versions & 1 rubygems