pitr / angular-rails-templates

Use your angular templates with rails' asset pipeline
https://rubygems.org/gems/angular-rails-templates
MIT License
566 stars 169 forks source link

Slim not supported? or trouble finding templates #130

Closed bradgreens closed 8 years ago

bradgreens commented 8 years ago

I'm not sure if I'm failing to configure the templates correctly or if support for slim was dropped. I see many examples for foo.html.slim but then observed the following note in the readme:

Caution: .ngslim is no longer supported!

I wasn't sure if that was a reference to something like this.

If slim is still supported (and it seems like it is) then I can't get my templates to load for the life of me.

This might be because my application.js file is nested one level deeper than the examples. e.g. app/assets/javascripts/nested-folder/application.js. Then I've tried many combinations of template locations such as //= require_tree ../../templates/nested-folder for where the templates also live one level deeper.

Thoughts? I could try putting together a barebones repo if this is not straightforward enough.

bradgreens commented 8 years ago

Nevermind, found the templates. I was looking in the root angular-rails-templates.self.js JS file and not the /templates folder