Re: Parsing .css files with php: Cons? [message #176750 is a reply to message #176748] |
Sat, 21 January 2012 22:08 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 1/21/2012 4:22 PM, Michael Fesser wrote:
> .oO(Jerry Stuckle)
>
>> On 1/21/2012 2:31 PM, Chuck Anderson wrote:
>>> J.O. Aho wrote:
>>>>
>>>> I have to say it feels quite much of extra work, writing the php
>>>> script which generates the css, as you need to edit the php file, then
>>>> IMHO you can quite easily edit a css instead.
>>>
>>> I edit one php file and then simply invoke it. There is very little more
>>> "work."
>>>
>>> [...]
>>
>> I agree with J.O. Seems overly complicated to have to edit a PHP file
>> which then generates the CSS. Much easier just to edit the CSS -
>> especially when you have syntax-sensitive editors for CSS available.
>
> The whole point of using PHP for creating the CSS is to avoid having to
> edit a dozen places in the CSS to change some color for example. Instead
> you make use of PHP and variables. Much simpler.
>
> And if you still want a "static" CSS for performance reasons, you have
> to preprocess it. Calling a script for doing this is not much work.
> Dependent on the used IDE this could even be automated in the build and
> upload process.
>
> Micha
>
Create your .css properly and you don't need to do that.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|