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

3742[Cheetahtemplate-discuss] Cheetah 2.0rc7 released

Expand Messages
  • Tavis Rudd
    Jul 4, 2006
    • 0 Attachment
      from the changelog:

      2.0rc7 (July 4, 2006)
      !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
      Core Changes: [TR]
      - extended the #implements directive so an arguments list can be declared
      in
      the same fashion as #def and #block.

      - made the parser raise ParseError when $*placeholder, $*5*placeholder,
      $(placeholder), etc. are found within expressions. They are only valid
      in
      top-level text.

      - tweaked the parser so it's possible to place a comment on the same line
      as
      a directive without needing to explicitly close the directive first.
      This
      works regardless of whether or not you added a colon.

      self.verify("#if 1:\n$aStr\n#end if\n",
      "blarg\n")

      self.verify("#if 1: \n$aStr\n#end if\n",
      "blarg\n")

      self.verify("#if 1: ##comment \n$aStr\n#end if\n",
      "blarg\n")

      self.verify("#if 1 ##comment \n$aStr\n#end if\n",
      "blarg\n")

      Previously, that last test would have required an extra # to close the
      #if
      directive before the comment directive started:
      self.verify("#if 1 ###comment \n$aStr\n#end if\n",
      "blarg\n")

      Code that makes use of explicit directive close tokens immediately
      followed by
      another directive will still work as expected:
      #if test##for i in range(10)# foo $i#end for##end if

      - safer handling of the baseclass arg to Template.compile(). It now does
      the right thing if the user passes in an instance rather than a class.

      ImportHooks: [TR]
      - made it possible to specify a list of template filename extentions that
      are
      looped through while searching for template modules. E.g.:
      import Cheetah.ImportHooks
      Cheetah.ImportHooks.install(templateFileExtensions=('.tmpl','.cheetah'))

      Core changes by MO:
      - Filters are now new-style classes.
      - WebSafe and the other optional filters in Filters.py now use
      RawOrEncodedUnicode instead of Filter as a base class. This allows them
      to work with Unicode values containing non-ASCII characters.
      User-written custom filters should inherit from
      RawOrEncodedUnicode and call the superclass .filter() instead of str().
      str() as of Python 2.4.2 still converts Unicode to string using
      ASCII codec, which raises UnicodeEncodeError if it contains non-ASCII
      characters.


      Using Tomcat but need to do more? Need to support web services, security?
      Get stuff done quickly with pre-integrated technology to make your job easier
      Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
      http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss