Permalink
Browse files

remove swig.render and swig.fromString

  • Loading branch information...
1 parent ae9f134 commit 4c3c5541652ddd0bfa99534b142de856c41eb3a8 @paularmstrong committed Oct 26, 2011
Showing with 0 additions and 10 deletions.
  1. +0 −10 index.js
View
@@ -143,11 +143,6 @@ exports.compileFile = function (filepath) {
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) {
options = options || {};
var tmpl = getTemplate(source, options || {});
@@ -156,8 +151,3 @@ exports.compile = function (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.