国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

node.js - koa2 template engine rendering failure
ringa_lee
ringa_lee 2017-05-16 13:32:02
0
3
770

The code is as shown in the figure. The expected result should be that the title has changed and the title is named node.
But in actual operation, the title is <%= title %>, which means the template engine does not work?

ringa_lee
ringa_lee

ringa_lee

reply all(3)
劉奇

It seems that your index.js does not have a template engine set? Like the jade template engine, html files should be .jade files, not .html.

習慣沉默

I agree with you, should I save the index.html file as an index.jade file? The jade template has been upgraded, save it as index.pug and try it.

劉奇

gg, my mistake, the brackets were placed in the wrong place, disturbing everyone.

app.use(views(path.join(__dirname, './views'), {
  map: {
    html: 'underscore'
  }
}))

Just change it to this way

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template