Method: RubySlippers::Engine::Context#render
- Defined in:
- lib/ruby_slippers/context.rb
#render(page, type) ⇒ Object
22 23 24 25 |
# File 'lib/ruby_slippers/context.rb', line 22 def render page, type content = to_html page, @config type == :html ? to_html(:layout, @config, &Proc.new { content }) : send(:"to_#{type}", page) end |