Sha256: a0b14f2c46a2d9d6c26b7623cc3d36dfa9a5a605f759b28587ac6f79f9649adc

Contents?: true

Size: 414 Bytes

Versions: 9

Compression:

Stored size: 414 Bytes

Contents

class PagesController < ApplicationController

  def index
    @page = Page.find_page params[:path]
    render :inline => @page.render(drops), :layout => @page.render_layout, :content_type => @page.content_type
  end

  private

  def drops
    {
      :self => PufferPages::Liquid::PageDrop.new(@page, request),
      :root => PufferPages::Liquid::PageDrop.new(Page.root, request)
    }.stringify_keys
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
puffer_pages-0.0.11 app/controllers/pages_controller.rb
puffer_pages-0.0.10 app/controllers/pages_controller.rb
puffer_pages-0.0.9 app/controllers/pages_controller.rb
puffer_pages-0.0.8 app/controllers/pages_controller.rb
puffer_pages-0.0.7 app/controllers/pages_controller.rb
puffer_pages-0.0.6 app/controllers/pages_controller.rb
puffer_pages-0.0.5 app/controllers/pages_controller.rb
puffer_pages-0.0.4 app/controllers/pages_controller.rb
puffer_pages-0.0.3 app/controllers/pages_controller.rb