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.

29 lines
997 B

  1. // Generated by CoffeeScript 1.4.0
  2. var __hasProp = {}.hasOwnProperty,
  3. __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; };
  4. module.exports = function(BasePlugin) {
  5. var EcoPlugin;
  6. return EcoPlugin = (function(_super) {
  7. __extends(EcoPlugin, _super);
  8. function EcoPlugin() {
  9. return EcoPlugin.__super__.constructor.apply(this, arguments);
  10. }
  11. EcoPlugin.prototype.name = 'eco';
  12. EcoPlugin.prototype.render = function(opts) {
  13. var eco, inExtension, templateData;
  14. inExtension = opts.inExtension, templateData = opts.templateData;
  15. if (inExtension === 'eco') {
  16. eco = require('eco');
  17. return opts.content = eco.render(opts.content, templateData);
  18. }
  19. };
  20. return EcoPlugin;
  21. })(BasePlugin);
  22. };