view test/Hello.java @ 2:6c41a0b43e58 release_0_3

Tema 0.3 (imported from CVS).
author Mikhail Kryshen <mikhail@kryshen.net>
date Tue, 19 Feb 2008 20:32:17 +0300
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;
    }
}