Sha256: 99e44b105e3be72883cfadd553a232d43d14746d943e0e55d420cf3338b7ce0f

Contents?: true

Size: 1.32 KB

Versions: 16

Compression:

Stored size: 1.32 KB

Contents

# Writer - html metadata writer

# History:
# 	Stan Smith 2015-01-28 original script
#   Stan Smith 2015-06-23 replace global ($response) with passed in object (responseObj)
#   Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS

require 'builder'
require_relative 'version'
require_relative 'md_html_writer'

module ADIWG
    module Mdtranslator
        module Writers
            module Html

                def self.startWriter(intObj, responseObj, paramsObj)

                    # set the format of the output file based on the writer specified
                    responseObj[:writerFormat] = 'html'
                    responseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::Html::VERSION

                    # create new HTML document
                    html = Builder::XmlMarkup.new(indent: 3)
                    metadataWriter = MdHtmlWriter.new(html, intObj, paramsObj)
                    metadata = metadataWriter.writeHtml()

                    # set writer pass to true if no messages
                    # false or warning will be set by code that places the message
                    if responseObj[:writerMessages].length == 0
                        responseObj[:writerPass] = true
                    end

                    return metadata
                end

            end
        end
    end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.4.0 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/html/html_writer.rb
adiwg-mdtranslator-1.3.0 lib/adiwg/mdtranslator/writers/html/html_writer.rb