Sha256: 70fc5fade51926ad07ef97e445a972796862ad46a614214108571e0921ff57dc
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 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 :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 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awestruct-0.4.6 | lib/awestruct/site.rb |
awestruct-0.4.5 | lib/awestruct/site.rb |
awestruct-0.4.4 | lib/awestruct/site.rb |