#!/usr/bin/env python # -*- coding: utf-8 -*- # # see benchsimple.py # configuration for Genshi XML config = { "template" : """\ Benchsimple | ${title}

Benchsimple | ${title}

""", "module" : "genshi", "import" : 'from genshi.template import MarkupTemplate;', "complete" : 'tmpl = MarkupTemplate(template); stream = tmpl.generate(**context_dict); r = stream.render("html")', "parse" : 'tmpl = MarkupTemplate(template)', "render" : 'stream = tmpl.generate(**context_dict); r = stream.render("html")' } #-----------------------------------------