RE: [SMARTY] {literal} + variabel
| From: | Gary Loescher | Date: | Sun, 04 May 2003 13:31:07 +0000 |
| Subject: | RE: [SMARTY] {literal} + variabel | ||
| References: | 1 | Groups: | php.smarty.dev php.smarty.general |
| Request: | Send a blank email to php-smarty-dev+get-1336@lists.php.net to get a copy of this message | ||
[Summary:] Smarty variables can't be used in {literal} {/literal} blocks
(naturally). Currently doable by ending the block and restarting it around
the Smarty variable.
Mattias wrote:
> I was thinking of this solution also.
> But it felt like I was thinking in the wrong way and there
> should be an easier way to do it..
I was thinking about this recently. We could add a {script}...{/script}
block that temporarily switches the delimiters to "{{" and "}}". Or, better
yet, recognizes repeated delimiters, since they are changeable
("<!--{<!--{")...
I wouldn't change the {literal} tag, since semantically it means "no parsing
whatsoever."
Gary