This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree 5 files changed +16
-12
lines changed
5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
2
2
3
+ PL-v0.3.4
4
+ - FIX: Generator class renamed because it's a reserved name in PHP 5.5
5
+ - THX: thanks to @faustgertz for the heads up
6
+
3
7
PL-v0.3.3
4
8
- FIX: links created with {{ link.pattern }} now have the correct path
5
9
- FIX: links within a pattern now properly update the history
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
/*!
4
- * Pattern Lab Builder CLI - v0.3.3
4
+ * Pattern Lab Builder CLI - v0.3.4
5
5
*
6
6
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
7
7
* Licensed under the MIT license
36
36
// initiate the g (generate) switch
37
37
38
38
// iterate over the source directory and generate the site
39
- $ g = new Generator ();
39
+ $ g = new Generatr ();
40
40
$ g ->generate ();
41
41
print "your site has been generated... \n" ;
42
42
45
45
// initiate the w (watch) switch
46
46
47
47
// iterate over the source directory and generate the site
48
- $ g = new Generator ();
48
+ $ g = new Generatr ();
49
49
$ g ->generate ();
50
50
print "your site has been generated... \n" ;
51
51
52
52
// watch the source directory and regenerate any changed files
53
- $ w = new Watcher ();
53
+ $ w = new Watchr ();
54
54
print "watching your site for changes... \n" ;
55
55
$ w ->watch ();
56
56
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
/*!
4
- * Pattern Lab Builder Class - v0.3.3
4
+ * Pattern Lab Builder Class - v0.3.4
5
5
*
6
6
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
7
7
* Licensed under the MIT license
10
10
*
11
11
*/
12
12
13
- class Builder {
13
+ class Buildr {
14
14
15
15
// i was lazy when i started this project & kept (mainly) to two letter vars. sorry.
16
16
protected $ mpl ; // mustache pattern loader instance
@@ -51,7 +51,7 @@ public function __construct() {
51
51
// if the variables are array-like make sure the properties are validated/trimmed/lowercased before saving
52
52
if (($ key == "ie " ) || ($ key == "id " )) {
53
53
$ values = explode (", " ,$ value );
54
- array_walk ($ values ,'Builder ::trim ' );
54
+ array_walk ($ values ,'Buildr ::trim ' );
55
55
$ this ->$ key = $ values ;
56
56
} else {
57
57
$ this ->$ key = $ value ;
@@ -127,7 +127,7 @@ protected function generateMainPages() {
127
127
$ sd = $ this ->gatherPartials ();
128
128
129
129
// sort partials by patternLink
130
- usort ($ sd ['partials ' ], "Builder ::sortPartials " );
130
+ usort ($ sd ['partials ' ], "Buildr ::sortPartials " );
131
131
132
132
// render the "view all" pages
133
133
$ this ->generateViewAllPages ();
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
/*!
4
- * Pattern Lab Generator Class - v0.3.3
4
+ * Pattern Lab Generator Class - v0.3.4
5
5
*
6
6
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
7
7
* Licensed under the MIT license
11
11
*
12
12
*/
13
13
14
- class Generator extends Builder {
14
+ class Generatr extends Buildr {
15
15
16
16
/**
17
17
* Use the Builder __construct to gather the config variables
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
/*!
4
- * Pattern Lab Watcher Class - v0.3.3
4
+ * Pattern Lab Watcher Class - v0.3.4
5
5
*
6
6
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
7
7
* Licensed under the MIT license
14
14
*
15
15
*/
16
16
17
- class Watcher extends Builder {
17
+ class Watchr extends Buildr {
18
18
19
19
/**
20
20
* Use the Builder __construct to gather the config variables
You can’t perform that action at this time.
0 commit comments