koajs / koa-hbs

Handlebars templates for Koa.js
MIT License
160 stars 43 forks source link

the viewPath maybe an array #36

Closed tonylinyy closed 8 years ago

tonylinyy commented 9 years ago

the doc says: viewPath: [required] Full path from which to load templates (Array|String) when I set an array,it goes wrong: TypeError: Path must be a string, is it possible the viewPath an array,just like viewPath: ['./client/web','./client/web2'],

jwilm commented 9 years ago

It was intended to support a list of paths. This may be a bug. I'll see if I can get a repro going over here. Thanks!

jwilm commented 9 years ago

@tonylinyy I was able to reproduce your issue. Can you check that the referenced commit covers your use case?