view test/Hello.java @ 30:54539dff18ca

Allow access to the calling (outer) context. Start parse_args implementation.
author Mikhail Kryshen <mikhail@kryshen.net>
date Fri, 15 May 2009 03:07:16 +0400
parents
children
line source
1 import java.io.Writer;
2 import java.io.IOException;
3 import kryshen.tema.*;
5 /**
6 * Test function class.
7 *
8 * @author Mikhail A. Kryshen
9 */
10 public class Hello extends Function {
11 public Hello() {}
13 public int invoke(FunctionDataParser fdp, Writer out)
14 throws IOException, TemplateException {
16 out.write("Hello, ");
17 fdp.parseData(out);
19 return 1;
20 }
21 }