lib/roda/plugins/render.rb
# Render the given template.  If there is a default layout
# for the class, take the result of the template rendering
# and render it inside the layout.  See Render for details.
Render the given template.  If there is a default layout
for the class, take the result of the template rendering
and render it inside the layout.  See Render for details.
Render the given template . If there is a default layout for the class take the result of the template rendering and render it inside the layout . See Render for details .
def view(template, opts=OPTS)
          opts = parse_template_opts(template, opts)
          content = opts[:content] || render_template(opts)
          if layout_opts  = view_layout_opts(opts)
            content = render_template(layout_opts){content}
          end
          content
        end
def view ( template , opts = OPTS ) opts = parse_template_opts ( template , opts ) content = opts [ :content ] || render_template ( opts ) if layout_opts = view_layout_opts ( opts ) content = render_template ( layout_opts ) { content } end content end
Render the given template.
Render the given template .
template
<not_specific>
opts
<not_specific>