On Monday 07 July 2003 10:14, Brian Candler wrote:
> On Mon, Jul 07, 2003 at 09:53:12AM -0400, Jesse Guardiani wrote:
> > This is a quick patch which adds an IMAGEURL tag
> > for use in html templates.
> >
> > The IMAGEURL tag can be used in sqwebmail HTML
> > templates like this:
> >
> > <td background="[#IMAGEURL#]/mybackground.jpg">
>
> It might be better to put that sort of stuff in a stylesheet though:
>
>   <td class="bkg">
>
> The stylesheet is already referenced using IMGPATH, so if your previous
> patch allowed IMGPATH to be overridden, it should allow multiple
> stylesheets already.

Yes, but my patch allows this all to happen automatically without editing
the stylesheet. Templates become plug-and-play, so to speak.

Unless we start parsing the stylesheet for template tags, it would be
impossible to dynamically generate IMGPATH inside the stylesheet.

I personally prefer to automatically generate the IMGPATH, rather than
having to edit a stylesheet, but I do see your point. At the cost of an
extra setup step, placing the background image in a stylesheet allows
a bit more flexibility...

Does anyone else have an opinion on this? Which method would the
list prefer?

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net



Reply via email to