Sha256: 8ea5975ab8469bdb7eea91d29f6934f9d0db588d89bd787c66b2888932b51b91

Contents?: true

Size: 536 Bytes

Versions: 10

Compression:

Stored size: 536 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?
      app.assets.register_engine('.slimbars', TiltHandlebars) if HandlebarsAssets::Config.slim_available?
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
handlebars_assets-0.16 lib/handlebars_assets/engine.rb
handlebars_assets-0.15 lib/handlebars_assets/engine.rb
handlebars_assets-0.14.1 lib/handlebars_assets/engine.rb
handlebars_assets-0.13.0 lib/handlebars_assets/engine.rb
handlebars_assets-0.12.3 lib/handlebars_assets/engine.rb
handlebars_assets-0.12.2 lib/handlebars_assets/engine.rb
handlebars_assets-0.12.1 lib/handlebars_assets/engine.rb
handlebars_assets-0.12.0 lib/handlebars_assets/engine.rb
handlebars_assets-0.11.0 lib/handlebars_assets/engine.rb
handlebars_assets-0.10.0 lib/handlebars_assets/engine.rb