koajs / koa-hbs

Handlebars templates for Koa.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mising '.' in index.js, line 344

develmts opened this issue · comments

It makes unable to render templates on some circumstances
As far as i can see this:
var tplPath = path.join(viewPath, tpl + this.extname);
should be changed to this
var tplPath = path.join(viewPath, tpl + '.' +this.extname);

No idea of colateral implications, but it's disallowing me to use koa-hbs

under what circumstances are you unable to render? please provide some code examples. koa-hbs has been around a while, and this is the first instance of the issue I've seen.

Sorry. Misunderstood the whole thing. Absolutely my mistake. Forget it and sorry for wasting your tie. Clsoing