consolidate
Advanced tools
Comparing version 0.6.0 to 0.7.0
0.7.0 / 2012-12-28 | ||
================== | ||
* add atpl support | ||
0.6.0 2012-12-22 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -233,2 +233,22 @@ /*! | ||
/** | ||
* Atpl support. | ||
*/ | ||
exports.atpl = fromStringRenderer('atpl'); | ||
/** | ||
* Atpl string support. | ||
*/ | ||
exports.atpl.render = function(str, options, fn){ | ||
var engine = requires.atpl || (requires.atpl = require('atpl')); | ||
try { | ||
var tmpl = cache(options) || cache(options, engine.compile(str, options)); | ||
fn(null, tmpl(options)); | ||
} catch (err) { | ||
fn(err); | ||
} | ||
}; | ||
/** | ||
* Liquor support, | ||
@@ -235,0 +255,0 @@ */ |
{ | ||
"name": "consolidate", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Template engine consolidation library", | ||
@@ -35,3 +35,4 @@ "keywords": [ | ||
"mote": "0.2.0", | ||
"toffee": "0.0.52" | ||
"toffee": "0.0.52", | ||
"atpl": ">=0.5.5" | ||
}, | ||
@@ -38,0 +39,0 @@ "main": "index", |
@@ -11,2 +11,3 @@ # Consolidate.js | ||
- [atpl](https://github.com/soywiz/atpl.js) | ||
- [dust](https://github.com/akdubya/dustjs) [(website)](http://akdubya.github.com/dustjs/) | ||
@@ -13,0 +14,0 @@ - [eco](https://github.com/sstephenson/eco) |
20547
524
153
25