Sha256: 3643b38d876c151df8389c06c6be456c693cc5015fd7bd18e6a8cf31e3bf5325
Contents?: true
Size: 752 Bytes
Versions: 2
Compression:
Stored size: 752 Bytes
Contents
module Jekyll class Layout include Convertible attr_accessor :site attr_accessor :ext attr_accessor :data, :content, :name # Initialize a new Layout. # +site+ is the Site # +base+ is the String path to the <source> # +name+ is the String filename of the post file # # Returns <Page> def initialize(site, base, name) @site = site @base = base @name = name self.data = {} self.process(name) self.read_yaml(base, name) self.transform end # Extract information from the layout filename # +name+ is the String filename of the layout file # # Returns nothing def process(name) self.ext = File.extname(name) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jberkel-jekyll-0.5.7 | lib/jekyll/layout.rb |
jberkel-jekyll-0.5.4 | lib/jekyll/layout.rb |