Class: ZAssets::Plugins::HamlCoffee::Registrant

Inherits:
Object
  • Object
show all
Defined in:
lib/zassets/plugins/haml_coffee/registrant.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Registrant

Returns a new instance of Registrant.



5
6
7
# File 'lib/zassets/plugins/haml_coffee/registrant.rb', line 5

def initialize(config)
  @config = config
end

Instance Method Details

#registerObject



9
10
11
12
13
14
# File 'lib/zassets/plugins/haml_coffee/registrant.rb', line 9

def register
  require 'haml_coffee_assets'

  @config[:paths] << File.dirname(::HamlCoffeeAssets.helpers_path)
  @config[:engines][:hamlc] = ::HamlCoffeeAssets::Tilt::TemplateHandler
end