We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to call a optional nested templates like
@with (templateName = model.getNestedTemplateName("SAMPLE") { @if (null != templateName) { @Rocker.template(templateName, model) } }
My model contains a method
public String getNestedTemplateName(final String componentName) { if ("SAMPLE".equals(componentName)) { return (SampleTemplate.getTemplatePackageName().replace(".", "/") + "/" + SampleTemplate.getTemplateName()); } return null; }
this is quite lengthy.. Is it possible to add a method "getFullTemplateName" which returns the complete name to the generated templates?
Thanks Jens
The text was updated successfully, but these errors were encountered:
What prevents you from calling the template directly?
@import package.SampleTemplate @args(...) @SampleTemplate.template(model)
Sorry, something went wrong.
I'm curious, what's your use case for having templates that could not exist?
No branches or pull requests
I try to call a optional nested templates like
My model contains a method
this is quite lengthy.. Is it possible to add a method "getFullTemplateName" which returns the complete name to the generated templates?
Thanks Jens
The text was updated successfully, but these errors were encountered: