Sha256: 737167a38f02eee47a17beace2315131292e112f4d97b56fa9bd3e8906db406b
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
# encoding: utf-8 # enforce UTF8 as the default, even if LANG environment # variable says otherwise. Encoding.default_internal = Encoding::UTF_8 Encoding.default_external = Encoding::UTF_8 require 'logger' # ensure that we load sass from a gem, not the sass included in some # versions of haml. gem 'sass' require 'sass' require 'haml' module Amber class MissingTemplate < StandardError end # Possible page suffixes. Only files with these suffixes are treated as pages PAGE_SUFFIXES = %w(haml md markdown text textile rst html html.haml) DEFAULT_HOST = '127.0.0.1' DEFAULT_PORT = '8000' def self.env if defined?(TESTING) && TESTING==true :test elsif defined?(Amber::Server) :developmet else :production end end end require 'amber/version' require 'amber/cli' require 'amber/logger' require 'amber/i18n' require 'amber/menu' require 'amber/site' require 'amber/site_configuration' require 'amber/static_page' require 'amber/static_page/filesystem' require 'amber/static_page/render' require 'amber/static_page/property_set' require 'amber/static_page/page_properties' require 'amber/page_array' require 'amber/render/layout' require 'amber/render/view' require 'amber/render/template' require 'amber/render/asset' require 'amber/render/autolink' require 'amber/render/bracketlink' require 'amber/render/table_of_contents' require 'amber/render/apache'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amber-0.3.8 | lib/amber.rb |