new feature: FreemarkerReader, FreemarkerInputStream

badqiu <[email protected]>
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <CAJk8isoCvPJTE0vDwnrsY+zXbRfvSNGoGx4GcuyN-gFn=epwTA@mail.gmail.com>
hi,all


all new feature:
Filter input streams through Freemarker.  example code like this:


Configuration configuration = *new *Configuration();
Map<String,Object> variables = *new *HashMap<String,Object>();
variables.put("now", new Date());

FreemarkerInputStream freemarkerInput = *new *
FreemarkerInputStream(inputStream,configuration,"UTF-8",variables);

FreemarkerReader freemarkerReader = *new *
FreemarkerReader(reader,configuration,variables);


Attachement here.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct

_______________________________________________
FreeMarker-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
Util.java (application/octet-stream, 1.5 KB) - not displayed
FreemarkerInputStream.java (application/octet-stream, 4.5 KB) - not displayed
FreemarkerInputStreamTest.java (application/octet-stream, 782 B) - not displayed
FreemarkerReader.java (application/octet-stream, 3.7 KB) - not displayed
FreemarkerReaderTest.java (application/octet-stream, 718 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.