Sha256: 52882bb6c0dda07da181be1050b0bebfce777fdaae96c32c762bc770369ec937
Contents?: true
Size: 671 Bytes
Versions: 24
Compression:
Stored size: 671 Bytes
Contents
module Jekyll class Layout include Convertible attr_accessor :ext attr_accessor :data, :content # Initialize a new Layout. # +base+ is the String path to the <source> # +name+ is the String filename of the post file # # Returns <Page> def initialize(base, name) @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
24 entries across 24 versions & 11 rubygems