lib/isodoc/gb/gbhtmlconvert.rb in metanorma-gb-1.3.14 vs lib/isodoc/gb/gbhtmlconvert.rb in metanorma-gb-1.3.15
- old
+ new
@@ -38,15 +38,19 @@
def populate_template(docxml, format)
meta = @meta.get.merge(@labels)
logo = @common.format_logo(meta[:gbprefix], meta[:gbscope], format, @localdir)
logofile = @meta.standard_logo(meta[:gbprefix])
- docxml = termref_resolve(docxml)
meta[:standard_agency_formatted] =
@common.format_agency(meta[:standard_agency], format, @localdir)
meta[:standard_logo] = logo
+
template = Liquid::Template.parse(docxml)
template.render(meta.map { |k, v| [k.to_s, v] }.to_h)
+
+ #template = liquid(docxml)
+ #template.render(meta.map { |k, v| [k.to_s, empty2nil(v)] }.to_h).
+ #gsub('<', '<').gsub('>', '>').gsub('&', '&')
end
def annex_name(annex, name, div)
div.h1 **{ class: "Annex" } do |t|
t << "#{anchor(annex['id'], :label)}<br/><br/>"