Skip to content

Adding gtengine to benchmark #7

@PerfectCarl

Description

@PerfectCarl

I want to add gtengine to the template framework benchmark

So I need to code a simple class that would instantiate a gtengine template engine, give a collection of Item as an input parameter and execute the thing.

Here's an example of code for another template engine

        // Some template engine specific code
        Properties p = new Properties();
        p.put("log.enabled", false);
        p.put("feature.smart_escape.enabled", false);
        p.put("feature.transform.enabled", false);

        // here we go 
        engine = new RythmEngine(p);

        // Parameters
        String tmpl = "path/to/my/template.rythm.html" ; 
        List<Stock> items = ...
        OutputStream o1 = ... 

        // Get the template output in the output stream o1  
        engine.render(o1, tmpl, items);
        o1.close();

Could you help me writing the code for gtengine ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions