Package | Description |
---|---|
com.google.clearsilver.jsilver | |
com.google.clearsilver.jsilver.adaptor |
Modifier and Type | Method and Description |
---|---|
JSilverOptions |
JSilverOptions.clone() |
JSilverOptions |
JSilver.getOptions()
Returns a copy of the JSilverOptions used by this JSilver instance.
|
JSilverOptions |
JSilverOptions.setAllowGlobalDataModification(boolean allowGlobalDataModification)
Use this method to disable wrapping the global HDF with an UnmodifiableData object which
prevents modification.
|
JSilverOptions |
JSilverOptions.setCacheTemplates(boolean cacheTemplates)
Whether to cache templates.
|
JSilverOptions |
JSilverOptions.setCompileTemplates(boolean compileTemplates)
Compile templates to Java byte code.
|
JSilverOptions |
JSilverOptions.setEscapeMode(EscapeMode escapeMode)
Escape any template being rendered with the given escaping mode.
|
JSilverOptions |
JSilverOptions.setIgnoreAttributes(boolean ignoreAttributes)
If set, then HDF attributes in HDF files will be ignored and not stored in the Data object
filled by the parser.
|
JSilverOptions |
JSilverOptions.setInitialBufferSize(int initialBufferSize)
Initial buffer size used when rendering directly to a string.
|
JSilverOptions |
JSilverOptions.setKeepTemplateCacheFresh(boolean keepTemplateCacheFresh) |
JSilverOptions |
JSilverOptions.setLoadPathCacheSize(int loadPathCacheSize)
Set the initial size of the load path cache container.
|
JSilverOptions |
JSilverOptions.setLogEscapedVariables(boolean logEscapedVariables)
Use this method to enable logging of all variables whose values are modified by auto escaping
or <cs escape> commands.
|
JSilverOptions |
JSilverOptions.setPrecompiledTemplateMap(Map<Object,String> precompiledTemplateMap)
Optional mapping of TemplateLoader keys to Template instances that will be queried when loading
a template.
|
JSilverOptions |
JSilverOptions.setPropagateEscapeStatus(boolean propagateEscapeStatus)
Only used for templates that are being auto escaped.
|
JSilverOptions |
JSilverOptions.setStripHtmlWhiteSpace(boolean value)
If
true , then unnecessary whitespace will be stripped from the output. |
JSilverOptions |
JSilverOptions.setStripStructuralWhiteSpace(boolean value)
If
true , then structural whitespace will be stripped from the output. |
JSilverOptions |
JSilverOptions.setUseOutputBufferPool(boolean value)
If
true , then use a threadlocal buffer pool for holding rendered output when outputting
to String. |
JSilverOptions |
JSilverOptions.setUseStrongCacheReferences(boolean value)
If
true , then the template cache will use strong persistent references for the values. |
Constructor and Description |
---|
JSilver(ResourceLoader defaultResourceLoader,
JSilverOptions options) |
Constructor and Description |
---|
JSilverFactory(JSilverOptions options) |
JSilverFactory(JSilverOptions options,
boolean unwrapDelegatedHdfs) |
Copyright © 2010–2013 Google. All rights reserved.