程序包 | 说明 |
---|---|
org.nutz.lang.tmpl |
限定符和类型 | 方法和说明 |
---|---|
static Tmpl |
Tmpl.parse(String tmpl)
解析模板对象
|
static Tmpl |
Tmpl.parse(String tmpl,
Pattern ptn,
int groupIndex,
int escapeIndex,
TmplEscapeStr getEscapeStr)
解析模板对象,并用上下文进行渲染。
|
static Tmpl |
Tmpl.parse(String tmpl,
String startChar)
自定义占位符的开始字符,左右括号各为 "{" 和 "}"
|
static Tmpl |
Tmpl.parse(String tmpl,
String startChar,
String leftBrace,
String rightBrace)
解析模板对象, 并用上下文进行渲染。
|
static Tmpl |
Tmpl.parsef(String fmt,
Object... args) |
Copyright © 2017. All rights reserved.