[Cheetahtemplate-discuss] Re: Using bare '$$' in a template
Brought to you by:
rtyler,
tavis_rudd
From: Tavis R. <ta...@re...> - 2002-02-25 03:43:22
|
Jeff, what version of Cheetah are you using? This works fine for me and there is a test case to test it as well. Tavis On Saturday 23 February 2002 13:44, Mike Orr wrote: > ----- Forwarded message from ----- > > Date: Tue, 19 Feb 2002 18:01:43 -0800 > To: Cheetah Template List > <che...@li...> Subject: Using bare > '$$' in a template > > I have a template converted from an HTML file. It contains a > phrase: > > I'm out of $$ now > > cheetah-compile throws an error because the placeholder names have > no components: > > File > "/local/opt/Python/lib/python2.2/site-packages/Cheetah/Parser.py", > line 1107, in eatPlaceholder > codeChunk = self.genCheetahVar(nameChunks) > File > "/local/opt/Python/lib/python2.2/site-packages/Cheetah/Compiler.py" >, line 108, in genCheetahVar > return self.genNameMapperVar(nameChunks) > File > "/local/opt/Python/lib/python2.2/site-packages/Cheetah/Compiler.py" >, line 162, in genNameMapperVar > chunk = nameChunks.pop() > IndexError: pop from empty list > > I worked around this by changing the template to: > > I'm out of \$\$ now > > But perhaps we can think of a way to either smartly identify this > or to print a more descriptive error message. ------------------------------------------------------- |