Re: CSS Templating

2010-05-11 Thread Eric Hamel
Agreed. This is what I ended up doing. Thanks for the ideas all. On Mon, May 10, 2010 at 3:28 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Instead of doing this, use cascading stylesheets like they were intended to be used: In both applications, have a global.css or similar that

Re: CSS Templating

2010-05-10 Thread Eric Hamel
Good Point. In all honesty, I'm looking for a practical way to skin 2 applications which are identical layout wise. Inherently, I don't want to manage 2 different stylesheets as that will lead to maintenance hell. The idea was to build a Template implemented in both applications to which I would

Re: CSS Templating

2010-05-10 Thread Jeremy Thomerson
Instead of doing this, use cascading stylesheets like they were intended to be used: In both applications, have a global.css or similar that handles all of the layout, etc, that is common to both sites. Then, in each application, include a appXYZ.css that simply changes colors, background

Re: CSS Templating

2010-05-09 Thread Igor Vaynberg
usually you would simply write a servlet to do it, but if you insist on doing it in wicket... https://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html -igor On Fri, May 7, 2010 at 12:52 PM, Eric Hamel dantehick...@gmail.com wrote: All, I've been exploring the use of

RE: CSS Templating

2010-05-08 Thread Chris Colman
That method of css generation you propose would be generating CSS (even if it were into a separate .css file) with each page render. If you're dealing with a lot of CSS that probably isn't the most efficient method. Generating CSS at render time would mean the browser could not take advantage of

Re: CSS Templating

2010-05-08 Thread Alex Objelean
If you are trying to achieve css variables, you may want to consider using wro4j: (http://code.google.com/p/wro4j/wiki/GettingStarted). It does support css variables, besides other dozen features (like less css meta framework integration, merge, minification, cache, build time runtime solution,