diff options
Diffstat (limited to 'java/pablotron/luigi')
-rw-r--r-- | java/pablotron/luigi/Test.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/java/pablotron/luigi/Test.java b/java/pablotron/luigi/Test.java new file mode 100644 index 0000000..6553939 --- /dev/null +++ b/java/pablotron/luigi/Test.java @@ -0,0 +1,20 @@ +package pablotron.luigi; + +import java.util.Map; +import java.util.HashMap; +import pablotron.luigi.Template; +import pablotron.luigi.LuigiError; + +public final class Test { + private static final String TEMPLATE = "hello %{name | uc}"; + + private static final Map<String, String> args = new HashMap<String, String>() {{ + put("name", "paul"); + }}; + + public static void main(String cli_args[]) throws Exception { + final Template t = new Template(TEMPLATE); + + System.out.println(t.run(args)); + } +}; |