Sha256: 5a5d2f782890f64a191ee8b275ffaf8abb16bceda13ac42d44577a8c9d9feb0b
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
# Writer - html metadata writer # History: # Stan Smith 2015-01-28 original script require 'builder' require 'liquid' require 'kramdown' require 'adiwg/mdtranslator/writers/html/md_html_writer' module ADIWG module Mdtranslator module Writers module Html def self.startWriter(intObj) # set the format of the output file based on the writer specified $response[:writerFormat] = 'html' $response[:writerVersion] = ADIWG::Mdtranslator::VERSION # create new HTML document html = Builder::XmlMarkup.new(indent: 3) metadataWriter = $WriterNS::MdHtmlWriter.new(html) metadata = metadataWriter.writeHtml(intObj) # set writer pass to true if no messages # false or warning will be set by code that places the message if $response[:writerMessages].length == 0 $response[:writerPass] = true end return metadata end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems