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

javascript - How to modify the template directory using nunjucks?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-31 10:41:29
0
1
838

The default configuration on the official website is

    nunjucks.configure('views', { autoescape: true });
    

The template directory is under /views. If I want to change it to be under group directories such as /views/admin and /views/home, can this be achieved through configuration? Or do I need to modify the render method?

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證高級(jí)PHP講師

reply all(1)
阿神

If the framework provides middleware, you can intercept it in the middleware, then identify whether it is a front-end module or a back-end module, and finally configure dynamic nunjucks

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