slim-template / slim-rails

Slim templates generator for Rails
MIT License
690 stars 129 forks source link

Slim in Rails asset pipline #98

Open junaidatique opened 8 years ago

junaidatique commented 8 years ago

I have an application that has slim templates. Now we are planning to migrate this to backbone. I tried to use slim in JS templates like file_name.jst.eco.slim. it works for the html part but ruby code does not work in it. One can do such things in HAML using haml_assets gem but I don't find anything like this in slim. The slim_assets gem does not work.

Please advise.

januszm commented 7 years ago

@junaidatique you mean this? https://github.com/crowdint/slim_assets or a fork https://github.com/dabit/slim_assets ? Maybe we can extract some code from it and make it work again.

januszm commented 3 years ago

@junaidatique I think this PR will solve your issue: https://github.com/slim-template/slim-rails/pull/148