gazay / gon

Your Rails variables in your JS
MIT License
3.05k stars 184 forks source link

Any possible to create a similar function gem to use controller data/variables in css file? #221

Open gamesover opened 7 years ago

gamesover commented 7 years ago

I understand what is assets pipeline and precompile to css. Just sometimes, I still need dynamically access to controller variables in css and I don't want to use inline css. Because in such situation, usually the scss is quite complex and unfeasible to write in raw css.