Mercurial > hg > tema
view test/Hello.java @ 19:7b11f5174e29
New functions: "and", "or". Deprecated: "if", "if_else".
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Tue, 21 Apr 2009 19:21:16 +0400 |
parents | 548a93c24e55 |
children |
line wrap: on
line source
import java.io.Writer; import java.io.IOException; import kryshen.tema.*; /** * Test function class. * * @author Mikhail A. Kryshen */ public class Hello extends Function { public Hello() {} public int invoke(FunctionDataParser fdp, Writer out) throws IOException, TemplateException { out.write("Hello, "); fdp.parseData(out); return 1; } }