Sha256: 94c57c78e3ddfefc76ddb50e189fcfc7359c9ce4b843d16cfd76f4fdee42ce11
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'rack' require 'yaml' autoload :Uglifier, 'uglifier' autoload :Tilt, 'tilt' # Asset packer, middleware and helpers # @homepage: https://github.com/fugroup/asset # @author: Vidar <vidar@fugroup.net>, Fugroup Ltd. # @license: MIT, contributions are welcome. module Asset class << self; attr_accessor :mode, :path, :cache, :favicon, :robots, :manifest, :images, :debug; end # Default is development @mode = ENV['RACK_ENV'] || 'development' # Where your assets live @path = File.join(Dir.pwd, 'app', 'assets') # Where to write the cache, default to APP_ROOT/tmp @cache = File.join(Dir.pwd, 'tmp') # Automatically bounce (404) for browser /favicon.ico requests @favicon = true # Send /robots.txt to a standard robots txt with reference to /sitemap.xml @robots = true # Debug option @debug = false end require_relative 'assets/util' require_relative 'assets/item' # Load the manifest ::Asset.manifest = ::Asset::Util.load_manifest # Load the images ::Asset.images = ::Asset::Util.load_images require_relative 'assets/helpers' require_relative 'assets/router'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asset-0.1.1 | lib/asset.rb |