<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=431214808-02122009><FONT face=Arial size=2>Hi
list</FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial size=2>In a
custom template, I want to create some of the code for the HTML
<head> section dynamically.</FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial size=2>For example, for
some pages, I would like some specific code in the <head>,
like:</FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial size=2><!--[if
IE]><BR><link
href="/system/modules/my.gallery.module/resources/style/IE-gallery.css"
rel="stylesheet" type="text/css" /><BR><![endif]--></FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=431214808-02122009></SPAN><SPAN class=431214808-02122009><FONT
face=Arial size=2>but for other pages I don't want it. </FONT></SPAN><SPAN
class=431214808-02122009><FONT face=Arial size=2>The above is just a
really simple example, it could be javascripts or whatever that one might
want to include for a single page, instead of globally. If you use one
global, hard-coded template, you will often include unneccessary
javascripts, stylesheets and so on.</FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial size=2>I have an idea or
two on how to achieve what I want (my current choice: storing <head>
section snippets as text files, and using properties to include
snippets where needed), but I would very much like to hear from anyone
who's done something similar; how did you solve this?</FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial size=2>Best
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=431214808-02122009><FONT face=Arial
size=2>Paul</FONT></SPAN><SPAN class=431214808-02122009><FONT face=Arial
size=2><BR></DIV></FONT></SPAN></BODY></HTML>