Methods

Class/Module Index [+]

Quicksearch

Ramaze::View::Slippers

View adapter for Slippers, see the website of Slippers for more information: starapor.github.com/slippers/

Public Class Methods

call(action, string) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.