21 Aug 07:48
Bug report: Dollar follwed by a name gets lost
We are currently starting a new project and would like to use Petal. While doing some exercises to get to know it, i tried to include a small example perl script in a template. To my surprise, variable names in the perl source were lost. After some more tests, I came to this conclusion: $variable IN THE template magically disappears $1000 is ok $n is ok (single letter following a $) <span tal:content="xx">...</span> replaces the content always ok Here is a small example: ---------------------------------- my template: <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:tal="http://purl.org/petal/1.0/"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"/> </head> <body> <p> 10 dollars are <b>$10</b>, n dollars are <b>$n</b>, but nn dollars disapear <b>$nn</b>! </p> </body> </html>(Continue reading)
RSS Feed