2013年10月11日星期五

Freemarker Template master a look

freemarker.template.Template
There is no way to directly set his value.
Configuration freemarkerCfg = new Configuration ();
freemarkerCfg.getTemplate ("Hello.ftl");
as this is the need to have a ftl actually exist , but what is needed is that this file does not exist
But there is a String instance can describe this document
String =
above entity class String is inside . . .
If you have a file Hello.ftl

that can be set into the. .
question is, the actual file does not exist
first output stream can be used to generate a physical file, and then set in, but that is too much trouble . .
There is no way you can directly set into it ? does not produce documents . . .
------ Solution ---------------------------------------- ----
to see freemarker implementation mechanism it
------ For reference only ----------------------- ----------------


not much help , but on you distribute your

没有评论:

发表评论