I'm using Liquid in my CSS. For example, I have test.css.liquid which contains:
body {
background: {{ 'red' }};
}
When I run rake assets:precompile, it's not test.css that's compiled but still test.css.liquid and the Liquid code isn't parsed.
Sprockets uses Tilt which has a Liquid parser by default. I have Liquid enabled on my site.
Any idea what could be wrong?
It is bad idea to rename the manifest file application.css. You can include assets by requiring it in the manifest file , like this :
*= require your_styles
and in case you've initiated the liquid engine , it should be OK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With