Re: [SMARTY] Examples of CSS and Smarty

From: Date: Mon, 18 Nov 2002 19:25:57 +0000
Subject: Re: [SMARTY] Examples of CSS and Smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6468@lists.php.net to get a copy of this message
I think there are two ways you can address this problem. A) Name the theme in a smarty var and include a completely different style sheet based on this theme name. This would just be a standard use of smarty to output a smarty var in the style tag. (i.e. <link href="path/to/{$theme}.css" type="text/css" rel="stylesheet"> ) B) Use smarty to generate the entire style sheet dynamically. This one is a little tougher, but would probably be done best by making the style sheet a php file. (see http://marc.theaimsgroup.com/?l=smarty- general&m=103744713931918&w=2) You would want to change the delimiters from { and } to avoid the pain assosiated with {literal} for that template. HTH Jason > Can anyone direct me to some samples of using Smarty with CSS? > How relevant is it to use CSS with Smarty? > > I am looking for some examples of using Smarty to do themed environments. > > - Kerry >

« previous php.smarty.general (#6468) next »