lib/scrapple/webapp.rb
# Choose a suitable renderer for this page and request.
# @param page [Page]
# @return [Module]
Choose a suitable renderer for this page and request.
Choose a suitable renderer for this page and request .
def renderer_for(page)
      (
        Scrapple.renderer(params['renderer']) ||
        Scrapple.renderer(page['renderer']) ||
        Scrapple.renderer(Scrapple.config["default_renderers"][page.type]) ||
        Scrapple.renderer(Scrapple.config["fallback_renderer"])
      )
    end
def renderer_for ( page ) ( Scrapple . renderer ( params [ 'renderer' ] ) || Scrapple . renderer ( page [ 'renderer' ] ) || Scrapple . renderer ( Scrapple . config [ "default_renderers" ] [ page . type ] ) || Scrapple . renderer ( Scrapple . config [ "fallback_renderer" ] ) ) end
Choose a suitable renderer for this page and request.
Choose a suitable renderer for this page and request .
None
Module
page
<not_specific>
<not_specific>
None