Package org.pirkaengine.core

Examples of org.pirkaengine.core.PirkaLoader


    public String call() throws Exception {
        PirkaContext context = new PirkaContext();
        context.setCachePath("tmp/cache");
        context.setEnableCache(true);
        context.setTemplatePath("testdata");
        PirkaLoader loader = new PirkaLoader(context);
       
        String templateName = "Repeat";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        HashMap<String, Object> viewModel = new HashMap<String, Object>();
        viewModel.put("rate", 4);
        String actual = tmpl.generate(viewModel).render();
        assertRenderEquals(templateName, actual);
        return actual;
View Full Code Here


    private PirkaLoader target;

    @Before
    public void setup() {
        target = new PirkaLoader();
    }
View Full Code Here

TOP

Related Classes of org.pirkaengine.core.PirkaLoader

Copyright © 2018 www.massapicom. 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.