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

[Cheetahtemplate-discuss] Fwd: possible bug in delimiters (directiveStartToken, directiveEndToken)

Expand Messages
  • Michal Konvalinka
    Hi, I sent this e-mail more than one week ago but it wasn t approved by moderator probably due to attachment bigger than 64kb. So this is my next attempt. ...
    Message 1 of 1 , Jul 11, 2007
    • 0 Attachment
      Hi,
      I sent this e-mail more than one week ago but it wasn't approved by
      moderator probably due to attachment bigger than 64kb. So this is my
      next attempt.

      ---------- Forwarded message ----------
      From: Michal Konvalinka <michal.konvalinka@...>
      Date: 01-Jul-2007 19:40
      Subject: possible bug in delimiters (directiveStartToken, directiveEndToken)
      To: cheetahtemplate-discuss@...

      Hello,
      I began to use Cheetah and tried to change the delimiters. To be
      honest it wasn't easy to find that I can change directiveStartToken
      and directiveEndToken when making the Template instance. But that's
      not the subject.

      I tried to change directiveEndToken and directiveStartToken to
      HTML-comment-like delimiters
      <!-- # and #--> as I found in this article and it worked.
      http://www.onlamp.com/pub/a/python/2005/01/13/cheetah.html

      But I prefer {{ and }}. When I tried these delimiters, Cheetah
      returned an error, Invalid Syntax. You can also try something like [[
      and ]].

      As you can see I attached two files. One is a unit-test and the second
      one is a result that I get from this tests (same result on FreeBSD and
      Windows). I use FreeBSD 6.2, Python 2.4 and Cheetah 2.0 RC7 and
      Windows XP, Python 2.4 and Cheetah 2.0 RC8.

      I ran Cheetah's built-in unit-tests on FreeBSD without any problem. On
      Windows I got 51 failures. I attached result from this test on Windows
      as a third file (just for your information).

      Thank you for any information how to change directiveStartToken and
      directiveEndToken to for example {{ and }}.

      Best regards,
      Michal
    Your message has been successfully submitted and would be delivered to recipients shortly.