templates
Version:
System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.
31 lines (22 loc) • 519 B
JavaScript
;
/**
* This function just wraps some common prototype methods that
* are exposed on collection, list and app.
*/
module.exports = function(Base, Ctor, CtorName) {
/**
* Inherit `Base`
*/
Base.extend(Ctor);
Base.bubble(Ctor, ['preInit', 'Init']);
/**
* Decorate static methods
*/
require('./is')(Ctor);
/**
* Mixin prototype methods
*/
require('./layout')(Ctor.prototype);
require('./render')(Ctor.prototype);
require('./errors')(Ctor.prototype, CtorName);
};