use of io.quarkus.qute.Template in project quarkus-openapi-generator by quarkiverse.
the class QuteTemplatingEngineAdapter method cacheTemplates.
public void cacheTemplates(TemplatingExecutor executor) {
for (String templateId : INCLUDE_TEMPLATES) {
Template incTemplate = engine.getTemplate(templateId);
if (incTemplate == null) {
incTemplate = engine.parse(executor.getFullTemplateContents(templateId));
engine.putTemplate(templateId, incTemplate);
}
}
}
Aggregations