Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better inline docs for rendering options

  • Loading branch information...
commit 6d9d28215ca0b67f35dd2dfca5c8e9dd9d433331 1 parent 63a1bb3
@rkh rkh authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 lib/sinatra/base.rb
View
13 lib/sinatra/base.rb
@@ -393,10 +393,15 @@ def back ; request.referer ; end
# that will be rendered.
#
# Possible options are:
- # :layout If set to false, no layout is rendered, otherwise
- # the specified layout is used (Ignored for `sass` and `less`)
- # :locals A hash with local variables that should be available
- # in the template
+ # :content_type The content type to use, same arguments as content_type.
+ # :layout If set to false, no layout is rendered, otherwise
+ # the specified layout is used (Ignored for `sass` and `less`)
+ # :layout_engine Engine to use for rendering the layout.
+ # :locals A hash with local variables that should be available
+ # in the template
+ # :scope If set, template is evaluate with the binding of the given
+ # object rather than the application instance.
+ # :views Views directory to use.
module Templates
module ContentTyped
attr_accessor :content_type
Please sign in to comment.
Something went wrong with that request. Please try again.