Re: [SMARTY] Escape the '{'?

From: Date: Fri, 15 Nov 2002 22:12:06 +0000
Subject: Re: [SMARTY] Escape the '{'?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6441@lists.php.net to get a copy of this message
You can use the {literal} tag. Anything between {literal} and {/literal} is not interpreted. Or you can change the delimiters, which is what I did. I use "{{" and "}}". I find this easier to work with. It's easier on my eyes, and I don't have {literal} tags all over the place. I use javascript a lot, and I use lots of Smarty in my Javascript, so using {literal} would be a pain. cheers, Travis Roy wrote:
Okay, finally trying to do some real work with Smarty. I can't find anything the manual about how to escape out the Smarty '{' and '}' in templates (like when doing CSS commands). I know you can change those characters, but how do you just escape out the occasional one? I tried backslashing them out, and doubling up on them. But, neither seemed to work. I thought I might have found something in the manual under '$left_delimiter' and '$right_delimiter', but saw no info on how to escape them out. Thanks, Roy
-- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>

« previous php.smarty.general (#6441) next »