public class LiteEngine extends Object implements TemplateEngine
| 限定符和类型 | 字段和说明 |
|---|---|
protected URI |
compiledBase |
protected ExecutorService |
executorService |
protected Map<String,Template> |
templateMap
WeakHashMap 回收的太快了?
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
LiteEngine() |
|
LiteEngine(URI compiledBase) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String path) |
protected Template |
createTemplate(String path) |
protected String |
getLitecode(String path) |
Template |
getTemplate(String path) |
void |
render(String path,
Object context,
Writer out) |
protected URI compiledBase
protected ExecutorService executorService
protected LiteEngine()
public LiteEngine(URI compiledBase)
public void render(String path, Object context, Writer out) throws IOException
render 在接口中 TemplateEngineIOExceptionpublic Template getTemplate(String path) throws IOException
getTemplate 在接口中 TemplateEngineIOExceptionpublic void clear(String path)
clear 在接口中 TemplateEngineprotected Template createTemplate(String path) throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.