Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Cheetahtemplate-discuss] Cheetah 1.0 vs Cheetah 2.2

Expand Messages
  • Hansen, Mike
    ... Thanks everyone. It doesn t sound too hard to upgrade. ... Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer
    Message 1 of 5 , Sep 29, 2009
      > -----Original Message-----
      > From: R. Tyler Ballance [mailto:tyler@...]
      > Sent: Tuesday, September 29, 2009 11:08 AM
      > To: Bogdano Arendartchuk
      > Cc: Hansen, Mike; cheetahtemplate-discuss@...
      > Subject: Re: [Cheetahtemplate-discuss] Cheetah 1.0 vs Cheetah 2.2
      >
      >
      > On Tue, 29 Sep 2009, Bogdano Arendartchuk wrote:
      >
      > > 2009/9/29 Hansen, Mike <Mike.Hansen@...>:
      > > > 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.
      >

      Thanks everyone. It doesn't sound too hard to upgrade.

      ------------------------------------------------------------------------------
      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
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
    Your message has been successfully submitted and would be delivered to recipients shortly.