Re: Can Smarty parse a CSS file? |
Subject: Re: Can Smarty parse a CSS file? by nachenko on 2008/1/22 6:57:54 As a proof of concept i'd say, yes, this is the idea. The problem with that is that the CSS file is included into the main HTML file, which results in a larger HTL file and unability to cache the style sheet. BTW, I'm negociating a new site for a new customer. Accesibility of the site must be certified. It's a great opportunity to push this concept, as a Smarty driven color scheme would allow disabled people to choose a special color squeme that improves readability. Perhaps we could even detect the browser and change automatically to this optimized-for-disabled-people theme design when browser is blah-blah-blah... Instead of having two different CSS style sheets, we define some variables for colors and edit just this. I'll think about it. |