-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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 ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels