Module: Ramaze::View::Slippers
- Defined in:
- lib/ramazeTemplates/slippers.rb
Class Method Summary collapse
Class Method Details
.call(action, string) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/ramazeTemplates/slippers.rb', line 6 def self.call(action, string) slippers = View.compile(string){|s| ::Slippers::Engine.new(s, :template_group => template_group(action)) } object_to_render = ::Slippers::BindingWrapper.new(action.instance.binding) html = slippers.render(object_to_render) return html, 'text/html' end |