"typeInit ::= [\"int\":\"0\", \"float\":\"0.0\"] "+newline+
"intermediate(stuff) ::= \"<stuff>\""+newline+
"var(type,name) ::= \"<type> <name> = <typeInit.(type)>;\""+newline
;
writeFile(tmpdir, "test.stg", templates);
STGroup group = new STGroupFile(tmpdir+"/"+"test.stg");
ST interm = group.getInstanceOf("intermediate");
ST var = group.getInstanceOf("var");
var.add("type", "int");
var.add("name", "x");
interm.add("stuff", var);
String expecting = "int x = 0;";
String result = interm.render();