Re: Cheetah 1.0 vs Cheetah 2.2
"R. Tyler Ballance" <[email protected]> Tue, 29 Sep 2009 10:07:59 -0700
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 29 Sep 2009, Bogdano Arendartchuk wrote: > 2009/9/29 Hansen, Mike <[email protected]>: > > Hi, > > > > I have an app running on Python 2.3 that uses Cheetah 1.0. If I upgraded Python to 2.6 and Cheetah 2.2 would there be any issues? Did the API change from Cheetah 1.0 to 2.2? I used compiled templates. Would I just have to recompile the templates to use 2.2? > > > > The only problem I had was with the handing of empty blocks. For example: > > #if $foo > ## Something was commented out > #end if > > Which results in IndentationError. Ah yes, we had this issue moving from 1.0 to 2.0 as well (mostly with old code), Cheetah does support the "#pass" directive, so you can use that to fill in those blocks: #if $foo #pass #end if Cheers -R. Tyler Ballance Slide, Inc. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkrCPu8ACgkQFCbH3D9R4W/eYwCfY5RSzDbHRAUuYr6EXLrMCWLR QGwAnA+rT/y/6ZN5rFj88v3YBNg1atq8 =CCez -----END PGP SIGNATURE-----