Re: Best way to include a .js file ?
| From: | Monte Ohrt | Date: | Thu, 31 Jan 2002 17:30:33 +0000 |
| Subject: | Re: Best way to include a .js file ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2632@lists.php.net to get a copy of this message | ||
They don't really hurt anything, just an extra block to parse during
compile time. Juliens problem wasn't about literal tags anyways. ;-)
Luc Saint-Elie wrote:
>
> Monte,
>
> This is exact, but I took the habit to put always {literal} around
> javascript statements to avoid to forget them when needed...
>
> Luc
>
> At 08:38 31/01/02 -0600, Monte Ohrt wrote:
> >In this example, the {literal} blocks are not needed since there are no
> >curly braces in the javascript.
> >
> >Put your .js file under the web server document root, and give a path
> >relative to document root, just like any .html file.
> >
> >Luc Saint-Elie wrote:
> > >
> > > Hello Julien
> > >
> > > {literal}
> > >
> > > <script type="text/javascript"
> > > src="mywonderfulscriptthatkicksevryass.js"></script>
> > >
> > > {/literal}
> > >
> > > Luc
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/