view test/Hello.java @ 7:dd4dce98151d

Added tag release_0_1 for changeset 1d2fe61a3a62
author Mikhail Kryshen <mikhail@kryshen.net>
date Fri, 07 Nov 2008 03:35:15 +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;
    }
}