slim-rails icon indicating copy to clipboard operation
slim-rails copied to clipboard

Slim in Rails asset pipline

Open junaidatique opened this issue 9 years ago • 2 comments

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.

junaidatique avatar Dec 15 '15 12:12 junaidatique

@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 avatar Mar 04 '17 10:03 januszm

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

januszm avatar May 20 '21 08:05 januszm