Sha256: 8ea43824ab77bee06094d9083000854b290b897b79d24eea928130826527cccc

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

module HandlebarsAssets
  class Engine < ::Rails::Engine
    initializer "sprockets.handlebars", :after => "sprockets.environment", :group => :all do |app|
      next unless app.assets
      app.assets.register_engine('.hbs', TiltHandlebars)
      app.assets.register_engine('.handlebars', TiltHandlebars)
      app.assets.register_engine('.hamlbars', TiltHandlebars) if HandlebarsAssets::Config.haml_available?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
handlebars_assets-0.9.0 lib/handlebars_assets/engine.rb
handlebars_assets-0.8.2 lib/handlebars_assets/engine.rb
handlebars_assets-0.8.1 lib/handlebars_assets/engine.rb
handlebars_assets-0.8.0 lib/handlebars_assets/engine.rb
handlebars_assets-0.7.2 lib/handlebars_assets/engine.rb
handlebars_assets-0.7.1 lib/handlebars_assets/engine.rb
handlebars_assets-0.7.0 lib/handlebars_assets/engine.rb