Module: Gearup::Environment
- Defined in:
- lib/gearup/environment.rb
Class Method Summary collapse
Class Method Details
.build(root) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gearup/environment.rb', line 10 def self.build root env = Sprockets::Environment.new root env.register_engine '.haml', Tilt::HamlTemplate env.register_engine '.sass', Tilt::SassTemplate env.append_path "." env.context_class.class_eval do include Gearup::Context end env end |