构造器和说明 |
---|
EnjoyRender() |
EnjoyRender(java.lang.ClassLoader classLoader) |
EnjoyRender(java.lang.ClassLoader classLoader,
java.lang.String viewPrefix) |
限定符和类型 | 方法和说明 |
---|---|
com.jfinal.template.Engine |
getProvider()
引擎提供者
|
com.jfinal.template.Engine |
getProviderOfDebug()
引擎提供者(调试模式)
|
void |
putDirective(java.lang.String name,
java.lang.Class<? extends com.jfinal.template.Directive> clz)
添加共享指令(自定义标签)
|
void |
putDirective(java.lang.String name,
EnjoyDirectiveFactory directiveFactory)
添加共享指令(自定义标签)
|
void |
putFunction(java.lang.String path)
添加共享模板函数
|
void |
putVariable(java.lang.String name,
java.lang.Object value)
添加共享变量
|
void |
render_mav(ModelAndView mv,
Context ctx,
SupplierEx<java.io.OutputStream> outputStream) |
void |
render(java.lang.Object obj,
Context ctx)
渲染
|
java.lang.String |
renderAndReturn(java.lang.Object obj,
Context ctx)
渲染并返回(默认不实现)
|
public EnjoyRender()
public EnjoyRender(java.lang.ClassLoader classLoader)
public EnjoyRender(java.lang.ClassLoader classLoader, java.lang.String viewPrefix)
public com.jfinal.template.Engine getProvider()
public com.jfinal.template.Engine getProviderOfDebug()
public void putDirective(java.lang.String name, java.lang.Class<? extends com.jfinal.template.Directive> clz)
public void putDirective(java.lang.String name, EnjoyDirectiveFactory directiveFactory)
public void putVariable(java.lang.String name, java.lang.Object value)
public void putFunction(java.lang.String path)
public void render(java.lang.Object obj, Context ctx) throws java.lang.Throwable
Render
public java.lang.String renderAndReturn(java.lang.Object obj, Context ctx) throws java.lang.Throwable
Render
renderAndReturn
在接口中 Render
java.lang.Throwable
public void render_mav(ModelAndView mv, Context ctx, SupplierEx<java.io.OutputStream> outputStream) throws java.lang.Throwable
java.lang.Throwable