Skip to content
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

[REQ] Allow authors of custom templates to apply multiple templates to api/model arrays #2656

Open
jimschubert opened this issue Apr 13, 2019 · 0 comments

Comments

@jimschubert
Copy link
Member

Is your feature request related to a problem? Please describe.

Currently, users writing custom templates can only apply the templates supported by the built-in generator. If a generator doesn't support something like service interfaces or model test classes, the user can't specify these in their custom templates.

Describe the solution you'd like

Ideally, an extension to a configuration file to allow extending for a specific generator:

{
…
"modelTemplate": {
    "merge": false,
    "files": [
        { "template": "model.mustache", "extension": ".m"},
        { "template": "model_license.mustache", "extension": ".license"}
    ],
"apiTemplate": {
    "merge": false,
    "files": [
        { "template": "api.mustache", "extension": ".a"},
        { "template": "api_interface.mustache", "extension": ".ai"},
        { "template": "api_license.mustache", "extension": ".license"}
    ]
}
…
}

This doesn't address some things like output structures which would be required by generators.

Describe alternatives you've considered

n/a

Additional context

see #690

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

No branches or pull requests

1 participant