forked from sotastudio/PhpLessDemandBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
43 lines (40 loc) · 1.54 KB
/
config.php
File metadata and controls
43 lines (40 loc) · 1.54 KB
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
<?php
/**
* Demand Bridge to use phpless in a customizable way
*
* Config file to set program default
*
* This is required to ensure that this package will work properly; especially some paths need to be predefined.
* Supported parsing modes are demand parsing, compiling and both parallel.
*
* The demand mode provided kinda fetching of really necessary GET vars to customize the rendering.
* In this mode there are two important things:
* - a cache file for faster return of teh css stuff
* - returned headers to control caching and make this hole thing even faster
*
* The compile mode is actually the base functionality of phpless - of course it has been optimized a bit.
*
* @package PhpLessDemandBridge
* @link https://github.com/MorphexX/PhpLessDemandBridge
* @link https://github.com/leafo/lessphp
* @link http://code.google.com/p/cssmin/
* @author Andy Hausmann <andy.hausmann@gmx.de>
* @copyright 2011 Andy Hausmann <andy.hausmann@gmx.de>
* @version 0.3.0
*/
$config = array(
// Rendering mode
// String: demand, compile, both - can be overridden via GET var
'mode' => 'demand',
// LESS root file
// String: path/to/file.less, relative to css.php - can be overridden via GET var
'lessFile' => '../global.less',
// Stylesheet compiling dir
// String: path/to/dir/ to put the compiled CSS in, relative to css.php
'compilePath' => './files/',
// Misc stuff
'expires' => '-2 month', // int: seconds to add / keyword: e.g. +1 month
'minify' => 0, // boolean
'debug' => 0, // boolean
'check_import_mtime' => 1, // boolean
);