[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    Re: [SMARTY-DEV] literal and javascript
From:       Thomas Bley <emailtotom () gmx ! de>
Date:       2004-03-16 11:45:28
Message-ID: 4056E8D8.6040007 () gmx ! de
[Download RAW message or body]

what about using javascript with: \} and \{ instead of {literal} 
(doesn't need much coding ...) ?

bye
tom

Ruben Vermeersch wrote:

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

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic