[Solar-talk] layout generator

Rodrigo Moraes rodrigo.moraes at gmail.com
Fri Aug 4 07:39:54 PDT 2006


On 8/4/06, Paul M Jones wrote:
> Sure is.  :-)
>
> The only issue here is an aesthetic one; having the CSS in the page
> itself is not very elegant, but in this case it's necessary.

The previous version had an action sending a text/css header and the
@import pointe to the action. It worked for me, but the link to the
action was probably not "universal ebough" to work for Jeff.

> The only alternative I can think of is to make the .css.php file a
> standalone php file, and then you could link to it like this ...
>
>      <link rel="stylesheet" type="text/css" href="Solar/styles/
> _onetruelayout.css.php" />
>
> ... but that has its own set of problems.

It is not good to generate CSS on the fly because it is an unnecessary
php processment to run all the times. Unless you are "creating it" and
want to see a preview (then, an action can generate the CSS and
replace the static file call in @import). Better is to generate and
save a CSS file for a defined layout once it is defined, but when to
save? And how to make this a 'private' action? I mean, this looks like
an app, not a layout manager. But there are some ideas to be explored
here, I hope.

rodrigo


More information about the solar-talk mailing list