-
Hello,
This is probably an issue with misunderstanding how koa/koa-hbs work, but it may be useful for others when they have the same problem while learning.
TL;DR: instead of rendering my templa…
-
```npm install koa-hbs```
Following are the logs that i have received, while running the above command.
```
540 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "koa-hbs"
54…
-
```
:; npm i
- wreck@5.6.1 node_modules/hapi/node_modules/h2o2/node_modules/wreck
- h2o2@4.0.1 node_modules/hapi/node_modules/h2o2
- joi@5.1.0 node_modules/hapi/node_modules/heavy/node_modules/joi
- i…
-
Hi, I saw there is a `partials` option which can set handlebars partial.
I expect it to be relative to the root dir that I passed to `views()`, but it seems it's relative to the target template?
F…
-
我的工程使用了`egg-view-handlebars`作为模版引擎,我需要给他做拓展,加上[koa-hbs](https://github.com/koajs/koa-hbs)的功能,让模板引擎支持`layouts`的能力。
开发大神有空的话求指点一下。
-
egg-view-handlebars这个插件怎么设置partialsPath呢?我看koa-hbs很好设置,你们提供的这个没有。
yijey updated
7 years ago
-
I'm using almost the exact code you posted in another issue for partials with handle bars:
```
const Koa = require('koa')
const views = require('koa-views')
const app = new Koa()
app.use(view…
-
I tried
```
koa2 --hbs --css sass --git koa2-test
```
Install works fine
https://gist.githubusercontent.com/AubreyHewes/fa6881ecd9089482ccc5a26f0ad2e126/raw
Running `npm start` works fine
https:/…
-
koa-hbs@next returns 'Not Found' for the first time render is called after server restarts.
-
1,How to set defautlayout with handlebars
2,my code:
``` javascript
app.use(views(__dirname+"/views", {
extension: 'hbs',
map: { hbs: 'handlebars' },
options: {
partials: {
…