Out of the box, you get:
All of this is backed by a strong file cache, so you don’t need to worry about the hit to the server. In addition, Scaffold will serve your CSS to the browser with the correct caching headers.
Requests to CSS files are made through Scaffold:
<link href="scaffold/parse.php?file=/stylesheets/master.css" rel="stylesheet"/>
You need to tell
parse.php the location of a CSS file, and it will do all the work for you. Alternatively, you can use a .htaccess file automatically parse CSS files in a directory.
If the file has changed, Scaffold will recache the file, otherwise it will just fetch the processed file from the cache and return that.
Download the latest version and place the scaffold/ folder somewhere on your webserver.
parse.php file needs to be accessible to the web, so either put the scaffold folder in your web directory, or move parse.php and change the
$system variable inside this file to point to the scaffold directory.
parse.php contains the configuration options for Scaffold.
Now in your HTML reference CSS files by going through the
<link href="path/to/parse.php?file=/path/to/stylesheet.css" rel="stylesheet"/>
The file parameter can point to the CSS file using either an absolute path, a path relative to parse.php or you can add your stylesheet directory to the
load_paths array in
Last edited by Anthony Short,