Method: Jekyll::Page#initialize

Defined in:
lib/jekyll/page.rb

#initialize(site, base, dir, name) ⇒ Page

Initialize a new Page.

site - The Site object. base - The String path to the source. dir - The String path between the source and the file. name - The String filename of the file.



23
24
25
26
27
28
29
30
31
# File 'lib/jekyll/page.rb', line 23

def initialize(site, base, dir, name)
  @site = site
  @base = base
  @dir  = dir
  @name = name

  self.process(name)
  self.read_yaml(File.join(base, dir), name)
end