public static class MiniTemplator.TemplateSpecification extends Object
MiniTemplator object.| 限定符和类型 | 字段和说明 |
|---|---|
Charset |
charset
The character set to be used for reading and writing files.
|
Set<String> |
conditionFlags
Flags for the conditional commands ($if, $elseIf).
|
boolean |
shortFormEnabled
Enables the short form syntax for conditional blocks.
|
String |
subtemplateBasePath
The path of the base directory for reading subtemplate files.
|
String |
templateFileName
The file name of the template file.
|
InputStream |
templateFileStream
The template file stream.
|
String |
templateText
The contents of the template file.
|
| 构造器和说明 |
|---|
TemplateSpecification() |
public String templateFileName
public InputStream templateFileStream
public String subtemplateBasePath
templateFileName) is used.public Charset charset
MiniTemplator.generateOutput(String outputFileName). If this field
is null, the default charset of the Java VM is used.public String templateText
templateFileName to pass
the template text in memory. If this field is not null, templateFileName will be ignored.public Set<String> conditionFlags
public boolean shortFormEnabled
Copyright © 2022 Baidu, Inc.. All rights reserved.