-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
Hello.
That's about using
- asset_path
- image_path
- image_tag
- and friends
After upgrade to latest version (4.2.6) and handlebars_assets(0.23.0) sprockets don't want anymore to compile templates like:
.wrapper
.illustration
= image_tag('rails.png')That's because we don't pass context anymore for new transformer.
There is easy solution:
module HandlebarsAssets
class HandlebarsProcessor
def call(input)
renderer = HandlebarsRenderer.new(path: input[:filename])
engine = renderer.choose_engine(input[:data])
context = input[:environment].context_class.new(input)
renderer.compile(engine.render(context))
end
end
endP.S. Sorry I don't have time to create PR ..
joenas, pdfrod and skyksandr
Metadata
Metadata
Assignees
Labels
No labels