-
-
Notifications
You must be signed in to change notification settings - Fork 304
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 should be able to be overriden #154
Comments
+1 |
1 similar comment
👍 |
Thanks for adding that +1 |
I think we should re-investigate whether this is still something we want. If so, let's figure out the work required to get it in place :) |
I think it makes sense to have this. People have preferences. Instead of us supporting everything. Let us please everyone by letting them override with their own crazy stuff. |
+1 |
This can be accomplished using this.src.root. |
Closing as this can be implemented by generator authors and should be up to them. Like I said, you can specify a path to the template files using |
Originally posted on the mailing list: https://groups.google.com/forum/#!msg/yeoman-dev/M8M-kqw6S28/1FZ0xbMgBXsJ
The behaviour is not implemented yet but should be.
The idea is that when a generator invoke the .template() method, the system looks first into your project
lib/templates/<generator>/<namespace>
and use the template it finds instead of the built-in.For instance, you would be able to override the template used in
angular:controller
generator by placing a template atlib/templates/angular/controller/controller.js
The text was updated successfully, but these errors were encountered: