Re: [SMARTY] Displaying "{" and "}" in a smarty template

From: Date: Fri, 19 Apr 2002 12:00:46 +0000
Subject: Re: [SMARTY] Displaying "{" and "}" in a smarty template
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3811@lists.php.net to get a copy of this message
Hi, Trond Arve Nordheim wrote:
I was writing a smarty template containing a URL with the two characters "{" and "}" in it. Smarty interpreted these as variables/functions, and returned an error. I've been trying to escape these curly brackets, but I can't find anything that works.
Put {literal} {/literal} around the text that contains the brackets. Smarty will leave the text between those two tags untouched. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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