# HTML writer # distribution # History: # Stan Smith 2017-04-04 original script require_relative 'html_distributor' module ADIWG module Mdtranslator module Writers module Html class Html_Distribution def initialize(html) @html = html end def writeHtml(hDistribution) # classes used distributorClass = Html_Distributor.new(@html) # distribution - description unless hDistribution[:description].nil? @html.em('Description:') @html.section(:class => 'block') do @html.text!(hDistribution[:description]) end end # distribution - distributor [] {distributor} hDistribution[:distributor].each do |hDistributor| @html.details do @html.summary('Distributor', {'class' => 'h5'}) @html.section(:class => 'block') do distributorClass.writeHtml(hDistributor) end end end end # writeHtml end # Html_Distribution end end end end