Module: Ramaze::View::Slippers
- Defined in:
- lib/ramaze/view/slippers.rb
Overview
View adapter for Slippers, see the website of Slippers for more information: starapor.github.com/slippers/
Class Method Summary collapse
Class Method Details
.call(action, string) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ramaze/view/slippers.rb', line 11 def self.call(action, string) slippers = View.compile(string) do |s| ::Slippers::Engine.new(s, :template_group => template_group(action)) end object_to_render = ::Slippers::BindingWrapper.new(action.instance.binding) html = slippers.render(object_to_render) return html, 'text/html' end |