Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
remove swig.render and swig.fromString
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong committed Oct 26, 2011
1 parent ae9f134 commit 4c3c554
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions index.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ exports.compileFile = function (filepath) {
return tpl; return tpl;
}; };


exports.fromString = function (string, name) {
console.warn('[WARNING] "swig.fromString" is deprecated. Use "swig.compile" instead.');
return exports.compile(string, { filename: name });
};

exports.compile = function (source, options) { exports.compile = function (source, options) {
options = options || {}; options = options || {};
var tmpl = getTemplate(source, options || {}); var tmpl = getTemplate(source, options || {});
Expand All @@ -156,8 +151,3 @@ exports.compile = function (source, options) {
return tmpl.render(source, options); return tmpl.render(source, options);
}; };
}; };

exports.render = function (source, options) {
var template = exports.compile(source, options);
return template(options.locals || {});
};

0 comments on commit 4c3c554

Please sign in to comment.