Re: [SMARTY-DEV] literal and javascript
| From: | Ruben Vermeersch | Date: | Mon, 15 Mar 2004 16:05:33 +0000 |
| Subject: | Re: [SMARTY-DEV] literal and javascript | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2199@lists.php.net to get a copy of this message | ||
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: ruben@Lambda1.be #
# Website: http://www.Lambda1.be #
# Mobile: +32495338869 #
# ------------------------------ #