UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

20 lines (12 loc) 349 B
/* Copyright 2012-2015, Yahoo Inc. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var path = require('path'); module.exports = { create: function (name, cfg) { cfg = cfg || {}; var Cons = require(path.join(__dirname, 'lib', name)); return new Cons(cfg); } };