express-handlebars icon indicating copy to clipboard operation
express-handlebars copied to clipboard

invoke _compileTemplate with additional third arg

Open kayomarz opened this issue 9 years ago • 0 comments

If the _compileTemplate() hook is invoked with an additional arg - filePath of the template, it means it knows the file extensions of that template. This helped me to use markdown along with express-handlebars engine in a clean way. This might be useful, in general for integrating with other markup/template technologies.

More explanation in the README of the master branch: https://github.com/kayomarz/express-handlebars.

kayomarz avatar Jan 27 '16 08:01 kayomarz