-
Used koa-generator (koa2 -e --hbs) to generate base code, it generates this:
``` JAVASCRIPT
app.use(views(__dirname + '/views', {
extension: 'hbs',
map: { hbs: 'handlebars' }
}));
```
By defaul…
-
With Node.js v7.0.0 out (with V8 5.4), it's now possible to run Koa v2 using async/await natively, without Babel (albeit behind a `--harmony` flag).
Would you be able to make a new version of koa-hbs…
-
As of 14 Feb 2017, running `npm install` on a fresh clone of this repo gives three deprecation warnings:
```
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoi…
-
Hi, jwilm
I use koa-hbs(0.4.4) in koa(0.5.5)
```
app.use(middlewares.bodyparser());
app.use(middlewares.jsonp());
app.use(middlewares.router(app));
app.use(middlewares.compress());
app.use(hbs.middl…
-
```js
koa.use(convert(hbs.middleware({
extname: '.html',
viewPath: ['./www/admin', './www/home'],
layoutsPath: './www',
partialsPath: ['./www/admin', './www/home'],
disableCa…
-
```js
koa.use(convert(hbs.middleware({
extname: '.html',
viewPath: ['./www/admin', './www/home'],
layoutsPath: './www',
partialsPath: ['./www/admin', './www/home'],
disableCa…
-
Related to this: https://github.com/nodejs/node/issues/1215
koa-hbs converts user given `viewPath` to an array if it's a string:
```
if (!Array.isArray(this.viewPath)) {
this.viewPath = [this.vie…
-
Hi Guys
Ive been running nsp on some of my apps and [nsp](https://github.com/nodesecurity/nsp) is reporting 3 vulnerabilities in the dependencies
```
(+) 3 vulnerabilities found
┌───────────────┬───…
-
we use koa-hbs in our project,and testing koa2
koa2 is released,when koa-hbs will support it, thanks
-
```
gulp.task('default', ['watch'], () =>
nodemon({
script: 'index.js',
watch: [
//'app/views/home.hbs',
'app/views'
],
ignore: 'public'
})
);
```
when i link to the f…