Skip to content

Commit

Permalink
better inline docs for rendering options
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Feb 20, 2011
1 parent 63a1bb3 commit 6d9d282
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/sinatra/base.rb
Expand Up @@ -393,10 +393,15 @@ def back ; request.referer ; end
# that will be rendered. # that will be rendered.
# #
# Possible options are: # Possible options are:
# :layout If set to false, no layout is rendered, otherwise # :content_type The content type to use, same arguments as content_type.
# the specified layout is used (Ignored for `sass` and `less`) # :layout If set to false, no layout is rendered, otherwise
# :locals A hash with local variables that should be available # the specified layout is used (Ignored for `sass` and `less`)
# in the template # :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 Templates
module ContentTyped module ContentTyped
attr_accessor :content_type attr_accessor :content_type
Expand Down

0 comments on commit 6d9d282

Please sign in to comment.