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