1
0
Fork 0

Add Composer support

This will allow installing Kostache with Composer. The Mustache.php
dependency can be autoloaded - just ensure you are including the
Composer autoloader file in your project.
This commit is contained in:
Evan Purkhiser 2013-01-25 21:49:22 -07:00
parent 189a3c0ade
commit 9b459a54ad
5 changed files with 25 additions and 10 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
*.swp

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "vendor/mustache"]
path = vendor/mustache
url = git://github.com/bobthecow/mustache.php.git

25
composer.json Normal file
View File

@ -0,0 +1,25 @@
{
"name": "zombor/kostache",
"description": "Logic-less View/Mustache Module for the Kohana Framework",
"keywords": ["kohana", "mustache", "templating", "view"],
"homepage": "https://github.com/zombor/KOstache",
"license": "MIT",
"authors": [
{
"name": "Jeremy Bush",
"email": "jeremy.bush@kohanaframework.org"
},
{
"name": "Woody Gilk",
"email": "woody.gilk@kohanaframework.org"
}
],
"support": {
"issues": "https://github.com/zombor/KOstache/issues",
"source": "https://github.com/zombor/KOstache"
},
"require": {
"mustache/mustache": "~2.6.0",
"php": ">=5.3.0"
}
}

View File

@ -1,5 +0,0 @@
<?php defined('SYSPATH') or die('No direct script access.');
// Load Mustache for PHP
include Kohana::find_file('vendor', 'mustache/src/Mustache/Autoloader');
Mustache_Autoloader::register();

1
vendor/mustache vendored

@ -1 +0,0 @@
Subproject commit d99be3444e5b2f0fb605941d7e692d3b5159360c