Module: Ramaze::View::Haml
- Defined in:
- lib/ramaze/view/haml.rb
Class Method Summary collapse
Class Method Details
.call(action, string) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/ramaze/view/haml.rb', line 7 def self.call(action, string) action.[:filename] = (action.view || '(haml)') haml = View.compile(string){|s| ::Haml::Engine.new(s, action.) } html = haml.to_html(action.instance, action.variables) return html, 'text/html' end |