Package org.stringtemplate.v4

Examples of org.stringtemplate.v4.STGroup.lookupTemplate()


    STGroup group = new STGroupFile(tmpdir + "/t.stg");
    // try to get an undefined template.
    // This will add an entry to the "templates" field in STGroup, however
    // this should not be returned.
    group.lookupTemplate("t2");

    Set<String> names = group.getTemplateNames();

    // Should only contain "t" and "main" (not "t2")
    assertEquals(2, names.size());
View Full Code Here


    STGroup group = new STGroupFile(tmpdir + "/t.stg");
    // try to get an undefined template.
    // This will add an entry to the "templates" field in STGroup, however
    // this should not be returned.
    group.lookupTemplate("t2");

    Set<String> names = group.getTemplateNames();

    // Should only contain "t" and "main" (not "t2")
    assertEquals(2, names.size());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.