Module: Hamdown::HamlHandler
- Defined in:
- lib/hamdown/haml_handler.rb
Overview
module to compile text (haml + html) to html
Class Method Summary collapse
Class Method Details
.perform(haml_text = '') ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/hamdown/haml_handler.rb', line 6 def self.perform(haml_text = '') return '' if haml_text.size == 0 haml_engine = Haml::Engine.new(haml_text) html = haml_engine.render return html end |