Sha256: 6fb3e2a11d02ee65a2aee3852a520c1a1db4efa032ad319814ab96e1367f2b88
Contents?: true
Size: 782 Bytes
Versions: 13
Compression:
Stored size: 782 Bytes
Contents
require 'awestruct/layouts' require 'awestruct/astruct' module Awestruct class Site < Awestruct::AStruct attr_reader :dir attr_reader :output_dir attr_reader :tmp_dir attr_reader :timestamp attr_reader :pages attr_reader :layouts attr_reader :config attr_reader :engine def initialize(engine, config) @engine = engine @pages = [] @layouts = Layouts.new @config = config self.encoding = false @timestamp = Time.now.to_i end def inspect "Site{:dir=>#{dir}}" end def dir @config.dir end def output_dir @config.output_dir end def tmp_dir @config.tmp_dir end def load_page(path) engine.load_path( self, path ) end end end
Version data entries
13 entries across 13 versions & 1 rubygems