Sha256: c7bd5b7e69289bf76fdc22dd1c0b169f69f35bf02f54d95ba32209ab94ea8ff7

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

- title @page.title

#hy-content-main.hy-content{:'data-content-yield' => 'main'}
  = render :partial => @page_partial, :locals => @local_vars

/ 
  ="X-HumpYard-Page:#{@page.id}"
  ="X-HumpYard-Time:#{Time.now}"

- Humpyard::config.templates[@page.template_name.to_sym][:yields].each do |yield_name|
  - content_for yield_name.to_sym do
    - if @page.always_refresh
      = render '/humpyard/pages/content', :yield_name => yield_name
    - else
      - cache "hy-yield-#{@page.id}-#{yield_name}-#{I18n.locale}-#{humpyard_user ? humpyard_user : nil}-#{@page.last_modified.to_i}" do
        = render '/humpyard/pages/content', :yield_name => yield_name

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 app/views/humpyard/pages/_show.html.haml