-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,17 @@ def self.path | |
PATH | ||
end | ||
|
||
def register_extensions(sprockets_environment) | ||
sprockets_environment.register_engine('.hbs', TiltHandlebars) | ||
sprockets_environment.register_engine('.handlebars', TiltHandlebars) | ||
sprockets_environment.register_engine('.hamlbars', TiltHandlebars) if HandlebarsAssets::Config.haml_available? | ||
sprockets_environment.register_engine('.slimbars', TiltHandlebars) if HandlebarsAssets::Config.slim_available? | ||
def self.register_extensions(sprockets_environment) | ||
Sprockets.register_engine('.hbs', TiltHandlebars) | ||
Sprockets.register_engine('.handlebars', TiltHandlebars) | ||
Sprockets.register_engine('.hamlbars', TiltHandlebars) if HandlebarsAssets::Config.haml_available? | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AlexRiedler
Author
Collaborator
|
||
Sprockets.register_engine('.slimbars', TiltHandlebars) if HandlebarsAssets::Config.slim_available? | ||
end | ||
|
||
autoload(:Config, 'handlebars_assets/config') | ||
autoload(:Handlebars, 'handlebars_assets/handlebars') | ||
autoload(:TiltHandlebars, 'handlebars_assets/tilt_handlebars') | ||
end | ||
|
||
if defined?(Rails) | ||
require 'handlebar_assets/railtie' | ||
else | ||
register_extensions(Sprockets) | ||
end | ||
HandlebarsAssets.register_extensions(Sprockets) | ||
require 'handlebars_assets/engine' if defined?(Rails) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module HandlebarsAssets | ||
# NOTE: must be an engine because we are including assets in the gem | ||
class Engine < ::Rails::Engine | ||
end | ||
end |
This file was deleted.
Looks like this is the cause of #85 - why does handlebars assets need to register extensions that it knows nothing about - unless there's code here somewhere that hooks into the Hamlbars gem directly?