lib/pakunok.rb in pakunok-0.0.1 vs lib/pakunok.rb in pakunok-0.0.2

- old
+ new

@@ -1,4 +1,12 @@ module Pakunok class Engine < Rails::Engine + initializer "pakunok.configure_rails_initialization" do |app| + next unless app.config.assets.enabled + + require 'sprockets' + require 'sprockets/engines' + require 'pakunok/haml_js_template' + Sprockets.register_engine '.hamljs', ::Pakunok::HamlJsTemplate + end end end