summaryrefslogtreecommitdiff
path: root/java/pablotron/luigi/Test.java
blob: 65539391bce60af2e44b66936c0fd10332496955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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));
  }
};