nodejs 开源代码怎么换一个layout
 发布于 6 年前  作者 html5col  5800 次预览  最后一次回复是 6 年前  来自 问答 

nodejs 开源代码怎么换一个layout 加layout: 'a’也不成功,问下这个要怎么操作,才能换layout,其中有几个板块和论坛layout不一样,需要两个或3个layout怎么办?

9 回复
html5col

ejs不熟悉,以前用handbar,直接layout: ‘’ 写一下就可以换layout了

html5col

我用得 cnodejs开源代码

atian25

ejs 源码也就那么几行,自己看下不就得了。我印象中 ejs 这种残废品是不支持 layout 的。

html5col

@atian25 好吧,那cnodejs怎么选择ejs了呢,我以前用得handlejs,如果全换掉,要很多时间。。。

atian25

@html5col 因为 cnode 那一版的源码是 7,8 年前写的。

html5col

好吧,可以更新了,lol

atian25

@html5col 最新的 egg-cnode 源码,可以去提 PR 把 ejs 升级为 nunjucks