[IronPython] Cheetah works on IronPython

Sanghyeon Seo sanxiyn at gmail.com
Mon Sep 11 19:21:33 CEST 2006


Cheetah is a template engine written in Python: http://cheetahtemplate.org/

IronPython is an implementation of the Python programming language
running on .NET: http://www.codeplex.com/IronPython

I tested Cheetah 2.0rc7 with IronPython 1.0 for a while, and it seems
to work nicely. Here is a sample code I used to test. It should print
environment variables.

from Cheetah.Template import Template
import System
environment = Template('''
#for $entry in $GetEnvironmentVariables
$entry.Key = $entry.Value
#end for
''', searchList=[System.Environment])
print environment

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list