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:
parent
189a3c0ade
commit
9b459a54ad
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
*.swp
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "vendor/mustache"]
|
|
||||||
path = vendor/mustache
|
|
||||||
url = git://github.com/bobthecow/mustache.php.git
|
|
25
composer.json
Normal file
25
composer.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
5
init.php
5
init.php
|
@ -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
vendor/mustache
vendored
|
@ -1 +0,0 @@
|
||||||
Subproject commit d99be3444e5b2f0fb605941d7e692d3b5159360c
|
|
Loading…
Reference in a new issue