Object
Gets/Sets the content of this layout.
Gets/Sets the Hash that holds the metadata for this layout.
Gets/Sets the extension of this layout.
Gets the name of this layout.
Gets the Site object.
Initialize a new Layout.
site - The Site. base - The String path to the source. name - The String filename of the post file.
# File lib/jekyll/layout.rb, line 25 def initialize(site, base, name) @site = site @base = base @name = name self.data = {} self.process(name) self.read_yaml(base, name) end
Extract information from the layout filename.
name - The String filename of the layout file.
Returns nothing.
# File lib/jekyll/layout.rb, line 41 def process(name) self.ext = File.extname(name) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.