Forums / Developer / adding eZ template language to a javascript file / Comment40630
Olav Lillebø
Tuesday 11 May 2004 5:57:14 am
Not sure if this helps, but maybe try putting the script in a .tpl-file, and from pagelayout use something like
{include uri="design:script.tpl"}
and then, in the script, turn on and off literal to switch between tpl-language and js-language.
{literal} <script language="JavaScript1.2"><!-- ..... {/literal} {* Here put template language *} {literal} ...... {/literal}
Olav..