Using interpolation within Node.js EJS includes

后端 未结 4 1016
天涯浪人
天涯浪人 2021-02-07 09:46

My Express app is using EJS, and my views directory looks like this:

./views
  ./contents
    home.ejs
  ./includes
    header.ejs
    footer.ejs
  layout.ejs
         


        
4条回答
  •  星月不相逢
    2021-02-07 10:37

    Currently this hasn't been implemented into ejs but, there is this discussion and pull request that offers the functionality.

    https://github.com/visionmedia/ejs/issues/93

提交回复
热议问题