Package de.neuland.jade4j
Class JadeConfiguration
java.lang.Object
de.neuland.jade4j.JadeConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Map<String, JadeTemplate> private booleanprivate ExpressionHandlerprivate static final Stringprivate static final Stringprivate static final Stringprotected static final intprivate Jade4J.Modeprivate booleanprivate TemplateLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate JadeTemplatecreateTemplate(String name) private StringgetCachedKey(String name, long lastModified) private StringgetKeyValue(String name, long lastModified) getMode()getTemplate(String name) booleanbooleanvoidremoveFilter(String name) renderTemplate(JadeTemplate template, Map<String, Object> model) voidrenderTemplate(JadeTemplate template, Map<String, Object> model, Writer writer) voidsetBasePath(String basePath) voidsetCaching(boolean cache) voidsetExpressionHandler(ExpressionHandler expressionHandler) voidvoidsetFilters(Map<String, Filter> filters) voidsetMode(Jade4J.Mode mode) voidsetPrettyPrint(boolean prettyPrint) voidsetSharedVariables(Map<String, Object> sharedVariables) voidsetTemplateLoader(TemplateLoader templateLoader) booleantemplateExists(String url)
-
Field Details
-
FILTER_CDATA
- See Also:
-
FILTER_STYLE
- See Also:
-
FILTER_SCRIPT
- See Also:
-
prettyPrint
private boolean prettyPrint -
basePath
-
caching
private boolean caching -
mode
-
filters
-
templateLoader
-
expressionHandler
-
MAX_ENTRIES
protected static final int MAX_ENTRIES- See Also:
-
cache
-
lockCache
-
-
Constructor Details
-
JadeConfiguration
public JadeConfiguration()
-
-
Method Details
-
getTemplate
- Throws:
IOExceptionJadeException
-
getCachedKey
-
getKeyValue
-
renderTemplate
public void renderTemplate(JadeTemplate template, Map<String, Object> model, Writer writer) throws JadeCompilerException- Throws:
JadeCompilerException
-
renderTemplate
public String renderTemplate(JadeTemplate template, Map<String, Object> model) throws JadeCompilerException- Throws:
JadeCompilerException
-
createTemplate
- Throws:
JadeExceptionIOException
-
isPrettyPrint
public boolean isPrettyPrint() -
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint) -
setFilter
-
removeFilter
-
getFilters
-
setFilters
-
getTemplateLoader
-
setTemplateLoader
-
setExpressionHandler
-
getExpressionHandler
-
getMode
-
setMode
-
templateExists
-
isCaching
public boolean isCaching() -
setCaching
public void setCaching(boolean cache) -
clearCache
public void clearCache() -
getBasePath
-
setBasePath
-