OSDN Git Service

add Mustache dependency
authorscribu <mail@scribu.net>
Mon, 31 Dec 2012 11:30:43 +0000 (13:30 +0200)
committerscribu <mail@scribu.net>
Mon, 31 Dec 2012 15:58:27 +0000 (17:58 +0200)
.gitmodules
composer.json
php/mustache [new submodule]
php/utils.php

index bf7ca3d..05f4715 100644 (file)
@@ -1,3 +1,6 @@
 [submodule "php/php-cli-tools"]
        path = php/php-cli-tools
        url = git://github.com/wp-cli/php-cli-tools.git
+[submodule "php/mustache"]
+       path = php/mustache
+       url = git://github.com/bobthecow/mustache.php.git
index abdda1a..dbb99f1 100644 (file)
@@ -9,7 +9,8 @@
        ],
        "require": {
                "php": ">=5.3",
-               "wp-cli/php-cli-tools": "dev-master"
+               "wp-cli/php-cli-tools": "dev-master",
+               "mustache/mustache": "2.0.x"
        },
        "require-dev": {
                "phpunit/phpunit": "3.7.x",
diff --git a/php/mustache b/php/mustache
new file mode 160000 (submodule)
index 0000000..d99be34
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit d99be3444e5b2f0fb605941d7e692d3b5159360c
index c694061..8e27e5c 100644 (file)
@@ -26,6 +26,10 @@ function bootstrap() {
        if ( !$has_autoload ) {
                include WP_CLI_ROOT . 'php-cli-tools/lib/cli/cli.php';
                \cli\register_autoload();
+
+               include WP_CLI_ROOT . 'mustache/src/Mustache/Autoloader.php';
+               \Mustache_Autoloader::register();
+
                register_autoload();
        }