module Hamdown::HamlHandler
module to compile text (haml + html) to html
Public Class Methods
perform(haml_text = '')
click to toggle source
# File lib/hamdown/haml_handler.rb 6 def self.perform(haml_text = '') 7 return '' if haml_text.size == 0 8 9 haml_engine = Haml::Engine.new(haml_text) 10 html = haml_engine.render 11 12 return html 13 end