Re: [SMARTY-DEV] Re: literal and javascript

From: Date: Thu, 18 Mar 2004 10:14:10 +0000
Subject: Re: [SMARTY-DEV] Re: literal and javascript
References: 1 2 3 4 5  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2223@lists.php.net to get a copy of this message
Does IT - not my side ????? this is all I want !!!!
For one, I'd expect this to work as it does right now (taken from the Smarty
docs):
    {literal}
    SYNTAX EXAMPLES:
    {func var="test $foo.bar test"} <-- sees $foo.bar
    {/literal}
Pete M The biggest smarty fan in wales (maybe) Mark Rogers wrote:
Pete writes:
I think some have missed my point. The idea is to use backticks as delimiters within javascript code enclosed between {literal} tags
I agree that dropping in and out of {literal} is a pain, although I also agree with others that {literal} should do what it says, so I'd probably agree with {literal backticks=1} or similar, but not modifying the default {literal} behaviour. For one, I'd expect this to work as it does right now (taken from the Smarty docs):
    {literal}
    SYNTAX EXAMPLES:
    {func var="test $foo.bar test"} <-- sees $foo.bar
    {/literal}
I'd be interested in your views on my suggested {script}{/script} block handling, in the "Intelligent JavaScript handling" thread, as I think this would do what you need?


« previous php.smarty.dev (#2223) next »