mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added @deprecated tags for top-level render and stream methods
This commit is contained in:
parent
391aa80a9a
commit
62dcc4e3bf
@ -240,10 +240,16 @@ function load(templatePath, options) {
|
|||||||
|
|
||||||
exports.load = load;
|
exports.load = load;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use load(templatePath) instead
|
||||||
|
*/
|
||||||
exports.render = function (templatePath, data, out) {
|
exports.render = function (templatePath, data, out) {
|
||||||
return load(templatePath).render(data, out);
|
return load(templatePath).render(data, out);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use load(templatePath) instead
|
||||||
|
*/
|
||||||
exports.stream = function(templatePath, data) {
|
exports.stream = function(templatePath, data) {
|
||||||
return load(templatePath).stream(data);
|
return load(templatePath).stream(data);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user