This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
22
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+
37PL-v0.3.3
48 - FIX: links created with {{ link.pattern }} now have the correct path
59 - FIX: links within a pattern now properly update the history
Original file line number Diff line number Diff line change 11<?php
22
33/*!
4- * Pattern Lab Builder CLI - v0.3.3
4+ * Pattern Lab Builder CLI - v0.3.4
55 *
66 * Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77 * Licensed under the MIT license
3636 // initiate the g (generate) switch
3737
3838 // iterate over the source directory and generate the site
39- $ g = new Generator ();
39+ $ g = new Generatr ();
4040 $ g ->generate ();
4141 print "your site has been generated... \n" ;
4242
4545 // initiate the w (watch) switch
4646
4747 // iterate over the source directory and generate the site
48- $ g = new Generator ();
48+ $ g = new Generatr ();
4949 $ g ->generate ();
5050 print "your site has been generated... \n" ;
5151
5252 // watch the source directory and regenerate any changed files
53- $ w = new Watcher ();
53+ $ w = new Watchr ();
5454 print "watching your site for changes... \n" ;
5555 $ w ->watch ();
5656
Original file line number Diff line number Diff line change 11<?php
22
33/*!
4- * Pattern Lab Builder Class - v0.3.3
4+ * Pattern Lab Builder Class - v0.3.4
55 *
66 * Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77 * Licensed under the MIT license
1010 *
1111 */
1212
13- class Builder {
13+ class Buildr {
1414
1515 // i was lazy when i started this project & kept (mainly) to two letter vars. sorry.
1616 protected $ mpl ; // mustache pattern loader instance
@@ -51,7 +51,7 @@ public function __construct() {
5151 // if the variables are array-like make sure the properties are validated/trimmed/lowercased before saving
5252 if (($ key == "ie " ) || ($ key == "id " )) {
5353 $ values = explode (", " ,$ value );
54- array_walk ($ values ,'Builder ::trim ' );
54+ array_walk ($ values ,'Buildr ::trim ' );
5555 $ this ->$ key = $ values ;
5656 } else {
5757 $ this ->$ key = $ value ;
@@ -127,7 +127,7 @@ protected function generateMainPages() {
127127 $ sd = $ this ->gatherPartials ();
128128
129129 // sort partials by patternLink
130- usort ($ sd ['partials ' ], "Builder ::sortPartials " );
130+ usort ($ sd ['partials ' ], "Buildr ::sortPartials " );
131131
132132 // render the "view all" pages
133133 $ this ->generateViewAllPages ();
Original file line number Diff line number Diff line change 11<?php
22
33/*!
4- * Pattern Lab Generator Class - v0.3.3
4+ * Pattern Lab Generator Class - v0.3.4
55 *
66 * Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77 * Licensed under the MIT license
1111 *
1212 */
1313
14- class Generator extends Builder {
14+ class Generatr extends Buildr {
1515
1616 /**
1717 * Use the Builder __construct to gather the config variables
Original file line number Diff line number Diff line change 11<?php
22
33/*!
4- * Pattern Lab Watcher Class - v0.3.3
4+ * Pattern Lab Watcher Class - v0.3.4
55 *
66 * Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77 * Licensed under the MIT license
1414 *
1515 */
1616
17- class Watcher extends Builder {
17+ class Watchr extends Buildr {
1818
1919 /**
2020 * Use the Builder __construct to gather the config variables
You can’t perform that action at this time.
0 commit comments