@Role
@Unstable
public interface TemplateManager
| Modifier and Type | Method and Description |
|---|---|
org.xwiki.rendering.block.XDOM |
execute(String templateName)
Execute and return the template as
XDOM. |
org.xwiki.rendering.block.XDOM |
executeNoException(String template)
Execute and return the template as
XDOM. |
Template |
getSkinTemplate(String templateName,
Skin skin)
Search the template with passed name in the passed skin.
|
Template |
getTemplate(String templateName)
Search everywhere for the template with passed name depending on the current context (current skin, etc).
|
Template |
getTemplate(String templateName,
Skin skin)
Search the template with passed name in the passed skin.
|
org.xwiki.rendering.block.XDOM |
getXDOM(String templateName)
Parse the template with the provided name and return it as
XDOM. |
org.xwiki.rendering.block.XDOM |
getXDOMNoException(String templateName)
Parse the template with the provided name and return it as
XDOM. |
String |
render(String template)
Execute and render the template in current target syntax.
|
void |
render(String template,
Writer writer)
Execute and render the template in current target syntax.
|
void |
render(Template template,
Writer writer)
Execute and render the template in current target syntax.
|
String |
renderFromSkin(String template,
Skin skin)
Execute and render the template in current target syntax from the passed skin.
|
void |
renderFromSkin(String templateName,
Skin skin,
Writer writer)
Execute and render the template in current target syntax from the passed skin.
|
String |
renderNoException(String template)
Execute and render the template in current target syntax.
|
void |
renderNoException(String template,
Writer writer)
Execute and render the template in current target syntax.
|
org.xwiki.rendering.block.XDOM getXDOMNoException(String templateName)
XDOM.
Any failure is "printed" in the returned XDOM.
templateName - the name of the templateorg.xwiki.rendering.block.XDOM getXDOM(String templateName) throws Exception
XDOM.templateName - the name of the templateException - when failing to parse the templateorg.xwiki.rendering.block.XDOM executeNoException(String template)
XDOM.
Any failure is "printed" in the returned XDOM.
template - the name of the templateXDOM result of the template executionorg.xwiki.rendering.block.XDOM execute(String templateName) throws Exception
XDOM.templateName - the name of the templateXDOM result of the template executionException - when failing to parse the templateString renderNoException(String template)
Any failure is "printed" in the returned result.
template - the name of the templateString render(String template) throws Exception
template - the name of the templateException - when failing to render the templatevoid renderNoException(String template, Writer writer)
template - the name of the templatewriter - the writer containing the result of the execution and renderingvoid render(Template template, Writer writer) throws Exception
template - the name of the templatewriter - the writer containing the result of the execution and renderingException - when failing to render the templatevoid render(String template, Writer writer) throws Exception
template - the name of the templatewriter - the writer containing the result of the execution and renderingException - when failing to render the templateString renderFromSkin(String template, Skin skin) throws Exception
template - the name of the templateskin - the skinException - when failing to render the templatevoid renderFromSkin(String templateName, Skin skin, Writer writer) throws Exception
templateName - the name of the templateskin - the skinwriter - the writer containing the result of the execution and renderingException - when failing to render the templateTemplate getSkinTemplate(String templateName, Skin skin)
Does not fallback on parent skin.
templateName - the name of the templateskin - the skinTemplate getTemplate(String templateName, Skin skin)
Fallback on parent skin.
templateName - the name of the templateskin - the skinCopyright © 2004–2016 XWiki. All rights reserved.