public class JinjaTemplating extends Object implements Templating
Modifier and Type | Class and Description |
---|---|
static class |
JinjaTemplating.FatalTemplateErrorsException |
Constructor and Description |
---|
JinjaTemplating(String folder,
boolean devMode) |
Modifier and Type | Method and Description |
---|---|
void |
init(String folder) |
void |
registerFilter(com.hubspot.jinjava.lib.filter.Filter filter) |
void |
registerTag(com.hubspot.jinjava.lib.tag.Tag tag) |
String |
renderTemplate(String template,
Map<String,Object> context) |
void |
reset() |
Boolean |
templateExists(String path) |
public JinjaTemplating(String folder, boolean devMode)
public void init(String folder)
init
in interface Templating
public void reset()
reset
in interface Templating
public Boolean templateExists(String path)
templateExists
in interface Templating
public String renderTemplate(String template, Map<String,Object> context)
renderTemplate
in interface Templating
public void registerTag(com.hubspot.jinjava.lib.tag.Tag tag)
public void registerFilter(com.hubspot.jinjava.lib.filter.Filter filter)
Copyright © 2016. All rights reserved.