![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Switching stylesheetsby Anneq (Vicar) |
on Oct 18, 2004 at 19:54 UTC ( #400299=note: print w/replies, xml ) | Need Help?? |
I use the following fragment in my wrapper template using Template toolkit (TT):
main.css is my default stylesheet. color.css is a template component that uses the theme selected by the user. My application saves the theme and other user preferences and puts them in session parameters. The session parameter is passed to TT. Here is a snippet from color.css:
My configuration template extracts the relevant session parameters and puts them into a template variable which is a hash that used by color.css. HTH, Anne
In Section
Seekers of Perl Wisdom
|
|