Re: literal and javascript

Ruben Vermeersch <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <1079366733.3992.1.camel@neferteti>
Well, the problem is that not everybody uses smarty to output HTML code,
and certainly not everybody uses {literal} for javascript, backticks are
indeed not used in javascript, but i can think of serveral languages who
do use them.

Greetings, Ruben

On Mon, 2004-03-15 at 13:15, pete M wrote:
> Have been working on a project recently, and it involved using smarty 
> paramaters within the javascript code.
> 
> Realising the fact that there are a lot of {literal}{/literal} tags  I 
> was pondering the following idea.
> 
> could smarty somehow have variables within the {literal} tags eg in 
> Backticks or some "non used" javascript code ?
> 
> eg
> {literal}
> function foo{
>      bar = `$some_smarty_variable` + 1;
> {
> 
> {/literal}
> 
> just a thought
> 
> Pete
-- 
# ------------------------------ #
# Ruben Vermeersch               #
# E-mail: [email protected]       #
# Website: http://www.Lambda1.be #
# Mobile: +32495338869           #
# ------------------------------ #

-- 
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.