Added @deprecated tags for top-level render and stream methods

This commit is contained in:
Patrick Steele-Idem 2015-05-22 14:23:27 -06:00
parent 391aa80a9a
commit 62dcc4e3bf

View File

@ -240,10 +240,16 @@ function load(templatePath, options) {
exports.load = load;
/**
* @deprecated Use load(templatePath) instead
*/
exports.render = function (templatePath, data, out) {
return load(templatePath).render(data, out);
};
/**
* @deprecated Use load(templatePath) instead
*/
exports.stream = function(templatePath, data) {
return load(templatePath).stream(data);
};