Plugin.InfoRepo
Constructor and Description |
---|
RythmView() |
Modifier and Type | Method and Description |
---|---|
org.rythmengine.RythmEngine |
getEngine(App app) |
protected Template |
loadInlineTemplate(String content)
Sub class must implement this method to load the template from string literal
|
protected Template |
loadTemplate(String resourcePath)
Sub class must implement this method to load the template
|
String |
name()
Returns the View solution’s name.
|
void |
registerBuiltInTransformer(App app,
Class<?> clazz) |
void |
registerFormatter(App app,
org.rythmengine.extension.IFormatter formatter) |
void |
registerTransformer(App app,
Class<?> clazz) |
protected void |
reload(App app) |
appliedTo, applyTo, init, loadContent, templateHome, templateRootDir
register
public static final String ID
public String name()
View
Returns the View solution’s name. Recommended name should be in lower case characters. E.g. freemarker, velocity, rythm etc
protected Template loadTemplate(String resourcePath)
View
Sub class must implement this method to load the template
loadTemplate
in class View
resourcePath
- the path to the templatenull
if template not foundprotected Template loadInlineTemplate(String content)
View
Sub class must implement this method to load the template from string literal
loadInlineTemplate
in class View
content
- the template content string literalpublic org.rythmengine.RythmEngine getEngine(App app)
public void registerFormatter(App app, org.rythmengine.extension.IFormatter formatter)
Copyright © 2014–2018 ActFramework. All rights reserved.