Re: Extra stylesheets for different pages
| From: | Bertrand DUNOGIER | Date: | Sat, 22 Dec 2001 11:48:37 +0000 |
| Subject: | Re: Extra stylesheets for different pages | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2372@lists.php.net to get a copy of this message | ||
What about sending stylesheets / javascripts using a {include}
parameter ? or set the stylesheet / javascript in the script itself ?
Bertrand DUNOGIER
PB> Hi,
PB> How do other people handle having extra stylesheets/javascript for
PB> different parts of their site while using Smarty? The only way I can think
PB> of is either to make separate header files, which I don't want to do, or to
PB> create a custom function such as:
PB> {header type=stylesheet link=article.css}
PB> {header type=javascript link=script.js)
PB> and put this in my page templates. The function is then processed, and
PB> assigns anything it generates to a {$header} variable in the header file.
PB> I'm just worried that this is more overhead, which may be avoidable?