You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then the template in projects/show is compiled into JST['projects/show/foo'].
Is this behavior documented or avoidable? This makes going from a single path to multiple paths require modifying and testing a significant existing code, which is quite annoying.
It also seems like generally inconsistent and confusing behavior that discourages sharing code.
The text was updated successfully, but these errors were encountered:
If my assets.yml looks like this:
project_templates:
- app/templates/projects/.jst.haml
- app/templates/projects/index/.jst.haml
- app/templates/projects/show/*.jst.haml
Then then a template in projects/show is compiled into JST['show/foo'].
If I then add another path, like:
project_templates:
- app/templates/projects/.jst.haml
- app/templates/projects/index/.jst.haml
- app/templates/projects/show/.jst.haml
- app/templates/documents/shared/.jst.haml
then the template in projects/show is compiled into JST['projects/show/foo'].
Is this behavior documented or avoidable? This makes going from a single path to multiple paths require modifying and testing a significant existing code, which is quite annoying.
It also seems like generally inconsistent and confusing behavior that discourages sharing code.
The text was updated successfully, but these errors were encountered: