#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# see benchsimple.py
# configuration for Jinja 0.7
config = {
"template" : """\
Benchsimple | {{ title|escapexml }}
Benchsimple | {{ title|escapexml }}
{**}{% for row in table %}{*
*}
{* *}{% for col in row %}{*
*} {{ col|escapexml }} |
{* *}{% endfor %}{*
*}
{**}{% endfor %}{*
*}
""",
"module" : "jinja",
"import" : "from jinja import Template, Context, StringLoader",
"complete" : "t = Template(template, StringLoader()); c = Context(context_dict); r = t.render(c)",
"parse" : "t = Template(template, StringLoader())",
"render" : "c = Context(context_dict); r = t.render(c)"
}
#-----------------------------------------