[Solar-talk] layout generator
Paul M Jones
pmjones at solarphp.com
Fri Aug 4 07:55:17 PDT 2006
On Aug 4, 2006, at 9:39 AM, Rodrigo Moraes wrote:
>> 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.
Agreed.
> 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.
Also agreed; it seems like OTL-App is working its way toward being a
"generator"; as you say, one can save the resulting code and put it
in "styles/", then @import or <link /> that static file.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list