Sha256: 1d4a4a29859083d26a501e4dcd3afa07987d0d365ab8b42490e54b3b1af8d8ea
Contents?: true
Size: 723 Bytes
Versions: 65
Compression:
Stored size: 723 Bytes
Contents
module Jekyll class Layout include Convertible attr_accessor :site attr_accessor :ext attr_accessor :data, :content # 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) 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
65 entries across 65 versions & 23 rubygems