Re: Re: literal and javascript

"Mark Rogers" <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Organization Quarella Ltd
Message-ID <039d01c40cce$1a6aa710$1100000a@mark>
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

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.