New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates outside of the folder `app/assets/javascripts/templates` dont load #107

Closed
ariera opened this Issue Jul 29, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@ariera

ariera commented Jul 29, 2015

Hello guys!
First of all, thanks a lot to the maintainers of this project, it has save me already lots of time and you guys do a great job!

I have a question regarding the assets folder structure. This is how I would like mine to look like:

assets
   javascripts
      angular
          features
              featureX
                 templateX.html.slim
                 featureX.js.coffee

but templateX.html.slim doesnt get loaded
and in my application.js manifest i have

//= require_tree ./angular

The solution that I have found to get me going, in order to be able to load templateX.html.slim, is to use this alternative structure.

assets
   javascripts
      templates
         features
             featureX
                 templateX.html.slim
      angular
          features
              featureX
                 featureX.js.coffee

and make sure to require that templates tree in the manifest

//= require_tree ./templates

but that is a less desirable solution, as you can see there is a lot of folder structure repetition and would like to avoid it.

Is there a way to achieve this with angular-rails-templates ?

Thank you very much.

@kamnog

This comment has been minimized.

kamnog commented Aug 16, 2015

1 similar comment
@vnazarenko

This comment has been minimized.

vnazarenko commented Sep 18, 2015

@diegotoral

This comment has been minimized.

diegotoral commented Sep 27, 2015

I'm trying to achieve the same without success! Would be awesome keep all feature related things in the same place.

@pitr

This comment has been minimized.

Owner

pitr commented Jun 29, 2016

closing old issue

@pitr pitr closed this Jun 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment