Module: Wst::RendererFactory
- Defined in:
- lib/wst/renderer_factory.rb
Class Method Summary collapse
- .for(content, wst) ⇒ Object
- .hamlcontent(content, wst) ⇒ Object
- .hamlpage(content, wst) ⇒ Object
- .mdpage(content, wst) ⇒ Object
- .post(content, wst) ⇒ Object
- .xmlpage(content, wst) ⇒ Object
Class Method Details
.for(content, wst) ⇒ Object
12 13 14 |
# File 'lib/wst/renderer_factory.rb', line 12 def for content, wst send content.class.name.split('::').last.downcase.to_sym, content, wst end |
.hamlcontent(content, wst) ⇒ Object
32 33 34 |
# File 'lib/wst/renderer_factory.rb', line 32 def hamlcontent content, wst HamlRenderer.new content, wst end |
.hamlpage(content, wst) ⇒ Object
24 25 26 |
# File 'lib/wst/renderer_factory.rb', line 24 def hamlpage content, wst HamlRenderer.new content, wst end |
.mdpage(content, wst) ⇒ Object
20 21 22 |
# File 'lib/wst/renderer_factory.rb', line 20 def mdpage content, wst MdRenderer.new content, wst end |
.post(content, wst) ⇒ Object
16 17 18 |
# File 'lib/wst/renderer_factory.rb', line 16 def post content, wst MdRenderer.new content, wst end |
.xmlpage(content, wst) ⇒ Object
28 29 30 |
# File 'lib/wst/renderer_factory.rb', line 28 def xmlpage content, wst XmlRenderer.new content, wst end |