How do I render partials with jade without express.js?

后端 未结 4 1700
隐瞒了意图╮
隐瞒了意图╮ 2021-02-20 18:35

Only info I found was this:

http://forrst.com/posts/Node_js_Jade_Import_Jade_File-CZW

I replicated the suggested folder structure (views/partials) But it didn\'t

4条回答
  •  抹茶落季
    2021-02-20 19:08

    Jade has a command called include. Just use

    include _form
    

    given that the filename of the partial is *_form.jade*, and is in the same directory

提交回复
热议问题