sitepress-rails/rails/app/controllers/concerns/sitepress/site_pages.rb
# If a resource has a handler, (e.g. erb, haml, etc.) we say its "renderable" and
# process it. If it doesn't have a handler, we treat it like its just a plain ol'
# file and serve it up.
If a resource has a handler,  we say its "renderable" and
process it. If it doesn't have a handler, we treat it like its just a plain ol'
file and serve it up.
If a resource has a handler we say its " renderable " and process it . If it doesn ' t have a handler we treat it like its just a plain ol ' file and serve it up .
def render_resource(resource)
      if resource.renderable?
        render_resource_with_handler resource
      else
        send_binary_resource resource
      end
    end
def render_resource ( resource ) if resource . renderable? render_resource_with_handler resource else send_binary_resource resource end end
If a resource has a handler, (e.g.
If a resource has a handler ( e . g .
resource
<not_specific>