New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using with riot.js (tag.slim) #649
Comments
Oh, I see slim does not define a Sprockets processor! Ok to send a PR? |
Issued at sstephenson/sprockets#674 |
There seems to have a deeper problem here: Slim will try to parse the javascript on the component. Still trying to figure out some solution. |
Another problem would be to use Seems to be hard to use slim outside ruby, will give skim a try... |
Possible with workaround at #650 |
Also, Riot needs pretty templates to be able to parse them, so a sprockets engine can be registered like this: Slim::PrettyTemplate = Temple::Templates::Tilt Slim::Engine, register_as: :slim, pretty: true
Rails.application.assets.register_engine '.slim', Slim::PrettyTemplate |
The following example does not work with https://github.com/bjarosze/riot_js-rails.
With the
js.tag
,riot_js-rails
compile it successfully to javascript. But when the.slim
extension is used, sprockets can't even find it.Any clue why?
The text was updated successfully, but these errors were encountered: