Re: Best way to include a .js file ?
| From: | Luc Saint-Elie | Date: | Thu, 31 Jan 2002 10:56:54 +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-2628@lists.php.net to get a copy of this message | ||
Hello Julien
{literal}
<script type="text/javascript" src="mywonderfulscriptthatkicksevryass.js"></script>
{/literal}
Luc
At 11:01 31/01/02 +0100, you wrote:
Hi, I am pretty new to templates systems in general and Smarty in particular. I have 2 questions you will certainly find of no particular interest : 1) Do you know a good tutorial on Smarty ? 2) I write in my .tpl file the following line <script type='text/javascript' src='file.js'></script> It does not work for me wherever I put the file.js Where must I put it ? Is there a better way to include css and javascript files ? --- You are currently subscribed to smarty as: luc@saint-elie.com To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/