Sha256: 3cfdc66de0e44340f65db9a715d3cc0bd50ddb246b8f3761f858a4b005cd2a23
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
module Hemingway module TagNode def html tag_type.html(sequence.elements.map { |c| c.html }.join) end end module VerticalSpaceTagNode def html Build.tag("div", nil, :class => "vspace#{vertical_height.height.text_value}") end end module HFillNode def html Build.tag("span", sequence.elements.map { |c| c.content.html }.join, :class => "pull-right") end end module NeatLineNode def html Build.tag("hr", nil, :class => "neatline", :close_tag => false) end end module EmphTagNode def html(content) Build.tag("em", content) end end module TextttTagNode def html(content) Build.tag("code", content) end end module TextbfTagNode def html(content) Build.tag("strong", content) end end module TextscTagNode def html(content) Build.tag("span", content, :class => "textsc") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hemingway-0.0.2 | lib/hemingway/tag/tag_nodes.rb |