forked from im-richard/Scaffold
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparse.php
89 lines (77 loc) · 2.35 KB
/
parse.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
// =========================================
// = Scaffold Configuration =
// =========================================
/**
* The location of the Scaffold system folder
*/
$system = './';
/**
* Production Mode
*
* TRUE for production, FALSE for development. In development the cache is always
* refreshed each time you reload the CSS. In production, the cache is locked
* and will only be recache if BOTH of these conditions are met:
*
* 1. One of the files in the request has changed
* 2. The cache lifetime has expired (set below)
*/
$config['production'] = false;
/**
* Cache Lifetime
*
* This value, in seconds, determines how long the cache will last before it
* tries to recompile the CSS again from the source.
*/
$config['max_age'] = 3600;
/**
* Load paths
*
* Paths for Scaffold to search for files. It will use these paths to try and find
* @import and url() paths (and others).
*/
$config['load_paths'] = array(realpath('./'));
/**
* PHP gzip compression
*
* If you don't want to use the .htaccess to gzip your files, you can have Scaffold
* do it for you before it outputs the CSS to the browser. Note that this takes longer
* to do than to just use Apache to compress your components.
*
* Set this from 1-9, with 9 being the highest compression, and false being no compression.
*/
$config['output_compression'] = false;
/**
* Set far expires headers
*
* By settings the Expires header to a time well in the future it allows the browser
* to keep the item cached, reducing HTTP requests over time. When the file is modified,
* the cache will update and send a new etag to the browser, so they will still see
* the new file.
*/
$config['far_future_expires_header'] = true;
// =========================================
// = Extension Configuration =
// =========================================
/**
* Enabled extensions
*/
$config['extensions'] = array(
//'AbsoluteUrls',
//'ServerImport',
//'NestedSelectors',
//'Mixins'
//'Minify',
//'Constants',
'Sass'
);
/**
* Extensions have their own configuration by using the format:
* $config['Constants']['key'] = value;
* These are then available within the extension with $this->config.
*/
//$config['AbsoluteUrls']['require_files'] = false;
// =========================================
// = Load Scaffold =
// =========================================
include $system.'/index.php';