You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// Generated by CoffeeScript 1.4.0
var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
module.exports = function(BasePlugin) { var EcoPlugin; return EcoPlugin = (function(_super) {
__extends(EcoPlugin, _super);
function EcoPlugin() { return EcoPlugin.__super__.constructor.apply(this, arguments); }
EcoPlugin.prototype.name = 'eco';
EcoPlugin.prototype.render = function(opts) { var eco, inExtension, templateData; inExtension = opts.inExtension, templateData = opts.templateData; if (inExtension === 'eco') { eco = require('eco'); return opts.content = eco.render(opts.content, templateData); } };
return EcoPlugin;
})(BasePlugin); };
|