[Bese-devel] Re: strings as parameters in TAL templates

Marco Baringer mb at bese.it
Fri Feb 3 15:06:29 UTC 2006


Jan Rychter wrote:
> How do you handle string parameters in TAL tags? Specifically, quoting?
> 
> I've tried this:
> 
> <tal:tal tal:content='(inline-image "dir1/crw_1122.jpg")' />
> 
> but it results in garbage generated after the tag is replaced, I get
> extra:
>     /></a
>   >
> 
> I need to pass a lisp string to the inline-image function.

if inline-image is a string containing #\< or #\> yaclml will escape
those and generate > and <, this may be your problem. try adding
tal:escape-html='nil' to the tal:tal tag and see if that helps. if it
doesn't i'll need enough code to reproduce the bug.

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen




More information about the bese-devel mailing list