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

From: Date: Thu, 18 Mar 2004 09:48:01 +0000
Subject: Re: [SMARTY-DEV] Re: literal and javascript
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2222@lists.php.net to get a copy of this message
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? -- Mark Rogers, More Solutions Ltd :: Tel: 0845 45 89 555

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