module UzuUzu::Helper::Page

Public Instance Methods

breadcrumbs(sep) click to toggle source
contents(options={}, locals={}) click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 10
def contents(options={}, locals={})
  @_contents ||= page.contents_render(options, locals)
end
page() click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 6
def page
  @_page ||= controller.info
end
page_css() click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 48
def page_css
  page.css_urls.map do |url|
    css(url)
  end.join("\n")
end
page_js() click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 42
def page_js
  page.js_urls.map do |url|
    js(url)
  end.join("\n")
end
page_meta() click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 32
def page_meta
  if page.respond_to?(:page_metas)
    page.page_metas.map do |meta|
      meta(meta.name, meta.content)
    end.join("\n")
  else
    meta("title", page_title)
  end
end
page_title() click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 28
def page_title
  h page.page_title
end
render_page(page, contents=nil, options={}, locals={}) click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 14
def render_page(page, contents=nil, options={}, locals={})
  @_page = page
  @_contents = contents
  body = page.render(options, locals)
  body = render_engine(body)
  @_page = nil
  @_contents = nil
  body
end
render_plugin(page, body) click to toggle source
# File lib/uzuuzu-cms/helper/page.rb, line 24
def render_plugin(page, body)
  ::UzuUzu::Plugin.render(page, body)
end