Edgewall Software

Changes between Version 4 and Version 5 of GenshiRecipes/WerkzeugWithGenshi


Ignore:
Timestamp:
Jul 24, 2008 10:36:47 PM (7 years ago)
Author:
jruigrok
Comment:

Make data a default variable in order to cut back on the argument list. Also allows one to add data.update() calls in TemplatedResponse?.

Legend:

Unmodified
Added
Removed
Modified
  • GenshiRecipes/WerkzeugWithGenshi

    v4 v5  
    2626    loader = None
    2727
    28     def __init__(self, template, data):
     28    def __init__(self, template, data={}):
    2929        if TemplatedResponse.loader is None:
    3030            TemplatedResponse.loader = TemplateLoader(TEMPLATES_DIR, auto_reload=True)