class Octopress::Partial
Create a new page class to allow partials to trigger Octopress
Hooks.
Attributes
content[RW]
data[RW]
ext[RW]
name[RW]
output[RW]
site[RW]
Public Class Methods
new(site, name, content)
click to toggle source
# File lib/octopress-render-tag/hooks.rb, line 12 def initialize(site, name, content) @site = site @name = name @ext = File.extname(name) @content = content @data = { layout: nil } # hack end
Public Instance Methods
render(payload)
click to toggle source
# File lib/octopress-render-tag/hooks.rb, line 21 def render(payload) do_layout(payload, { no_layout: nil }) end