1
0
mirror of https://github.com/pattern-lab/patternlab-php.git synced 2025-03-15 19:39:42 +01:00

adding a version number constant

This commit is contained in:
Dave Olsen 2014-01-13 16:15:52 -05:00
parent 2577943b90
commit fd4bfe719c

View File

@ -16,6 +16,8 @@ use \Mustache_Engine as Engine;
use \Mustache_Loader_PatternLoader as PatternLoader;
use \Mustache_Loader_FilesystemLoader as FilesystemLoader;
define("VERSION", "0.6.2");
class Builder {
// i was lazy when i started this project & kept (mainly) to two letter vars. sorry.
@ -1080,6 +1082,15 @@ class Builder {
print_r($this->d);
}
/**
* Print out the current version of Pattern Lab
*
* @return {String} the current version of PL
*/
public function printVersion() {
print "You're running v".VERSION." of the PHP version of Pattern Lab.\n";
}
/**
* Trim a given string. Used in the array_walk() function in __construct as a sanity check
* @param {String} an entry from one of the list-based config entries