Add caching support
This commit is contained in:
parent
3b401e17e8
commit
559e60b928
|
@ -16,7 +16,7 @@ class Kohana_Kostache {
|
|||
|
||||
protected $_engine;
|
||||
|
||||
public static function factory()
|
||||
public static function factory($cache = FALSE)
|
||||
{
|
||||
$m = new Mustache_Engine(
|
||||
array(
|
||||
|
@ -25,6 +25,7 @@ class Kohana_Kostache {
|
|||
'escape' => function($value) {
|
||||
return html::chars($value);
|
||||
},
|
||||
'cache' => $cache ? APPPATH.'cache/mustache' : NULL,
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue