consolidate.js icon indicating copy to clipboard operation
consolidate.js copied to clipboard

Why not to export fromStringRenderer?

Open ericsaboia opened this issue 10 years ago • 0 comments

It would be awesome if I could extend consolidate to use any template engine I wish, but still taking advantage of its logic:

consolidate.myCustomTemplate = consolidate.fromStringRenderer('myCustomTemplate')
consolidate.myCustomTemplate.render = function(str, options, fn) {
    // ...
}

ericsaboia avatar Nov 23 '14 16:11 ericsaboia