Sha256: c67dc29dae7ff5bda67df88492b9588f078768b74764c0965277ba535db787ef

Contents?: true

Size: 698 Bytes

Versions: 15

Compression:

Stored size: 698 Bytes

Contents

class SiteController < Sitepress::SiteController
  # Override this method to implement your processing logic for Sitepress pages.
  def show
    render_resource current_resource
  end

  protected

  # This is to be used by end users if they need to do any post-processing on the rendering page.
  # For example, the user may use Nokogiri to parse static HTML pages and hook it into the asset pipeline.
  # They may also use tools like `HTMLPipeline` to process links from a markdown renderer.
  #
  # For example, the rendition could be modified via `Nokogiri::HTML5::DocumentFragment(rendition)`.
  def process_rendition(rendition)
    # Do nothing unless the user extends this method.
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sitepress-rails-4.0.5 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-4.0.4 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-4.0.3 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-4.0.2 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-4.0.1 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-4.0.0 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-4.0.0.beta1 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.2.2 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.2.1 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.2.0 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.1.4 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.1.3 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.1.2 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.1.1 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb
sitepress-rails-3.0.1 rails/lib/generators/sitepress/controller/templates/controllers/site_controller.rb