use of org.rythmengine.internal.compiler.TemplateClass in project actframework by actframework.
the class RythmTemplate method template.
private org.rythmengine.template.ITemplate template(Map<String, Object> renderArgs) {
if (inline) {
TemplateClassManager tcm = engine.classes();
TemplateClass tc = tcm.getByTemplate(literal);
if (null == tc) {
tc = new TemplateClass(literal, engine, BasicRythm.INSTANCE);
}
ITemplate t = tc.asTemplate(engine);
t.__setRenderArgs(renderArgs);
return t;
} else {
return engine.getTemplate(literal, renderArgs);
}
}
Aggregations