Edgewall Software

Changes between Version 1 and Version 2 of GenshiRecipes/HtmlTransform


Ignore:
Timestamp:
Jul 28, 2006, 7:18:48 PM (13 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiRecipes/HtmlTransform

    v1 v2  
    7777
    7878def transform(html_filename, tmpl_filename):
    79     html_fileobj = open(html_filename)
    80     html = HTMLParser(html_fileobj, html_filename)
    81     html_fileobj.close()
    82 
    8379    tmpl_fileobj = open(tmpl_filename)
    8480    tmpl = Template(tmpl_fileobj, tmpl_filename)
    8581    tmpl_fileobj.close()
    8682
     83    html_fileobj = open(html_filename)
     84    html = HTMLParser(html_fileobj, html_filename)
    8785    print tmpl.generate(Context(input=html)).render('xhtml')
     86    html_fileobj.close()
    8887
    8988if __name__ == '__main__':