module Frontsau
Constants
- VERSION
Public Class Methods
asset_path(path)
click to toggle source
# File lib/frontsau.rb, line 60 def self.asset_path path assets_path+path end
assets_path()
click to toggle source
# File lib/frontsau.rb, line 56 def self.assets_path config[:assets][:path] end
init(root_path)
click to toggle source
# File lib/frontsau.rb, line 34 def self.init root_path # define project root self.root_path = root_path # load configuration config_file = File.expand_path '.frontsau' raise "No .frontsau found in #{root_path}!" unless File.exists? config_file raw_config = YAML.load File.read config_file self.config = ActiveSupport::HashWithIndifferentAccess.new raw_config['frontsau'] #Sprockets::Engines #Sprockets.register_engine '.haml', Tilt::HamlTemplate # initialize sprockets self.sprockets = Frontsau::Assets::Sprockets.new sprockets.cache = Sprockets::Cache::FileStore.new(config[:assets][:cache]) end