-
Notifications
You must be signed in to change notification settings - Fork 101
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
Allow subtemplates to be reached out from anywhere #120
Comments
So you're saying that a new project could include artifacts based on swing-java, javafx-groovy, and more? If I understand correctly, I'm thinking it might be better to have an alternative template installation option:
Or perhaps a separate command:
Once the sub-templates are installed into the local project, I'm not currently a huge fan of this idea because it feels like a workaround to lack of template dependencies. It's also pretty tedious for the user to specify the parent every time. Need to think on this. |
Correct, there may be a name clash between subtemplates. In the case of Griffon application templates this is a guaranteed scenario as all of them include their own version of the
and get an appropriate View class given the specific toolkit/language combination of the parent project. You could think that unpacking the templates will work and you're right, for most cases this would be a solution, buuut a griffon plugin may be a multi-project that contains various subprojects, each one targeting a specific toolkit. This is true for the scaffolding plugin that contains both swing and javafx subprojects sigh. I agree on the lack of template dependencies however in this case I don't think having to specify |
I think #142 is a rephrasing of this requirement. I can definitely see the value. |
Hmm yes #142 sounds better though, so closing this one. |
Here's the use case I've for this feature request: a
griffon-plugin
template initializes a typical Griffon project. This project may provide common artifacts such as controllers and services. These artifacts should be initialized using any of the standard artifact subtemplates available in the application projects. The key concept here is that each application project provides UI toolkit/language specific templates such as swing-java, javafx-groovy and so forth. Duplicating all toolkit/language artifact combinations for thegriffon-plugin
template is overkill.What if lazybones allowed something like this:
Both
--parent
and--version
(in the case of locally installed templates) should be taken into account. The current behavior ofgenerate
should be unaffected if--parent
is not specified.The text was updated successfully, but these errors were encountered: