Re: [SMARTY] Escaping the curly braces

From: Date: Fri, 09 Aug 2002 15:12:00 +0000
Subject: Re: [SMARTY] Escaping the curly braces
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5627@lists.php.net to get a copy of this message
All, > Use the following: > {literal} > {/literal} Out of curiosity, how easy would it be to add some other form of escaping for these? Eg: {{ and }}? I often find I have styles being defined which need Smarty to ignore the { and } but which use smarty to generate the actual style code, which leads to a lot of {literal}s and makes code unreadable. Eg: BODY { color: {$bodycolor} } Similarly within JavaScript code. Mark Rogers, Quarella Ltd

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