Page 2 of 2
Posted: Mon Jun 25, 2007 10:23 am
by Luke
Oren you are completely misunderstanding what I'm trying to do.
My python will simply build me a "template" from which to build my websites from. It will look something like this:
Code: Select all
/
/public
/images
/layout
/photos
/scripts
/styles
compressed-framework.css (this will be the compressed framework css file that my python generates from the readable and seperate css files I talked about earlier - it will also contain my overwridden styles for each specific website I create from this template)
/phplib
.htaccess
index.php
From this template, I'll create my website, and no compression will ever need to happen again (other than maybe gzip compression or something)
Posted: Mon Jun 25, 2007 10:44 am
by The Phoenix
The Ninja Space Goat wrote:Oren you are completely misunderstanding what I'm trying to do.
My python will simply build me a "template" from which to build my websites from.
From my point of view, I don't think he misunderstood.
I think the confusion is in whether that template building is occurring every page view (which is what I thought, and what I think Oren expects), or if it is a post-dev/pre-prod one-time thing?
Or maybe *I* am totally confused.

Posted: Mon Jun 25, 2007 11:53 am
by Luke
The Phoenix wrote:I think the confusion is in whether that template building is occurring every page view
which is what I was just now trying to clear up (and thought I had).
I wrote:From this template, I'll create my website, and no compression will ever need to happen again (other than maybe gzip compression or something)
My script will generate MY TEMPLATE ONLY. I'll use this template to then build my websites. There will not be compression happening on every page. There would be no need for that. I just want to be able to maintain my framework CSS files on my server in an easily readable manner. Then when I create a website that uses my framework, I want to simply compress the required base css files into one. Then in that file, I'll apply whatever custom styles I need for that particular website. So the css file will look something like this:
Code: Select all
/*** My CSS File ***/
/* Compressed framework css - pre-compressed when I generated the template would go right here */
/* And here is my own uncompressed css styles I use to override the framework and customize the site */
I am having a hard time explaining this, and I'm in a crappy mood so I'm going to try again later.
Posted: Sun Jul 01, 2007 3:47 am
by alex.barylski
Ninja...
I think what you want to look into is something like:
http://www.w3compiler.com/
It is a desktop application which compresses HTML, CSS and JavaScript. It's pretty kcik sas
Hope this helps
