Sha256: 4852d2353fd6fff9765a36191c2fca1143d9c9aa057f64212fce4f3984e5105f

Contents?: true

Size: 334 Bytes

Versions: 9

Compression:

Stored size: 334 Bytes

Contents

module Trickster
  module Renderer
    class NormalRenderer
      def render(io,content,options)
        io.puts "<h1>#{content[0]}</h1>"
        io.puts "<h2>#{content[1]}</h2>" unless content[1].nil? || content[1] == ''
        io.puts "<h3>#{content[2]}</h3>" unless content[2].nil? || content[2] == ''
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trickster-1.4.0 lib/trickster/renderer/normal_renderer.rb
trickster-1.3.1 lib/trickster/renderer/normal_renderer.rb
trickster-1.3.0 lib/trickster/renderer/normal_renderer.rb
trickster-1.2.0 lib/trickster/renderer/normal_renderer.rb
trickster-1.1.0 lib/trickster/renderer/normal_renderer.rb
trickster-1.0.0 lib/trickster/renderer/normal_renderer.rb
trickster-0.0.6 lib/trickster/renderer/normal_renderer.rb
trickster-0.0.5 lib/trickster/renderer/normal_renderer.rb
trickster-0.0.4 lib/trickster/renderer/normal_renderer.rb