Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

better inline docs for rendering options

  • Loading branch information...
commit 6d9d28215ca0b67f35dd2dfca5c8e9dd9d433331 1 parent 63a1bb3
Konstantin Haase rkh authored

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. +9 4 lib/sinatra/base.rb
13 lib/sinatra/base.rb
@@ -393,10 +393,15 @@ def back ; request.referer ; end
393 393 # that will be rendered.
394 394 #
395 395 # Possible options are:
396   - # :layout If set to false, no layout is rendered, otherwise
397   - # the specified layout is used (Ignored for `sass` and `less`)
398   - # :locals A hash with local variables that should be available
399   - # in the template
  396 + # :content_type The content type to use, same arguments as content_type.
  397 + # :layout If set to false, no layout is rendered, otherwise
  398 + # the specified layout is used (Ignored for `sass` and `less`)
  399 + # :layout_engine Engine to use for rendering the layout.
  400 + # :locals A hash with local variables that should be available
  401 + # in the template
  402 + # :scope If set, template is evaluate with the binding of the given
  403 + # object rather than the application instance.
  404 + # :views Views directory to use.
400 405 module Templates
401 406 module ContentTyped
402 407 attr_accessor :content_type

0 comments on commit 6d9d282

Please sign in to comment.
Something went wrong with that request. Please try again.