You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks for the time you've invested in this gem. It really simplified the process of getting Handlebars in a my Sinatra app.
I had one problem, though, and that was informing my Sprockets::Environment instance of the asset path supplied by this gem. I eventually got it working after delving into the source code, but it's quite a hack:
How did you guys intend for the asset path to be included? Let me know and I'll be happy to update the README to include instructions and send a pull request.
The text was updated successfully, but these errors were encountered:
Yea, that is a problem — Rails knows how to pull things out of vendor/assets. The assets_path above is really only used to get the handlebars.js code for execjs to run the compiler.
Hey guys,
Firstly, thanks for the time you've invested in this gem. It really simplified the process of getting Handlebars in a my Sinatra app.
I had one problem, though, and that was informing my
Sprockets::Environment
instance of the asset path supplied by this gem. I eventually got it working after delving into the source code, but it's quite a hack:How did you guys intend for the asset path to be included? Let me know and I'll be happy to update the README to include instructions and send a pull request.
The text was updated successfully, but these errors were encountered: