sitepress-rails/rails/app/controllers/concerns/sitepress/site_pages.rb
# If a resource has a handler (e.g. erb, haml, etc.) we use the Rails renderer to
# process templates, layouts, partials, etc. To keep the whole rendering process
# contained in a way that the end user can override, we coupled the resource, source
# and output within a `Rendition` object so that it may be processed via hooks.
If a resource has a handler  we use the Rails renderer to
process templates, layouts, partials, etc. To keep the whole rendering process
contained in a way that the end user can override, we coupled the resource, source
and output within a `Rendition` object so that it may be processed via hooks.
If a resource has a handler we use the Rails renderer to process templates layouts partials etc . To keep the whole rendering process contained in a way that the end user can override we coupled the resource source and output within a ` Rendition ` object so that it may be processed via hooks .
def render_resource_with_handler(resource)
      rendition = Rendition.new(resource)
      rendition.controller_layout = controller_layout
      pre_render rendition
      process_rendition rendition
      post_render rendition
    end
def render_resource_with_handler ( resource ) rendition = Rendition . new ( resource ) rendition . controller_layout = controller_layout pre_render rendition process_rendition rendition post_render rendition end
If a resource has a handler (e.g.
If a resource has a handler ( e . g .
resource
<not_specific>