jade template engine (under node.js): multi-line block without pipe symbol

前端 未结 2 437
半阙折子戏
半阙折子戏 2021-02-05 12:11

I\'m currently using Jade on a new project. It seems well-suited to composing webapp layouts, but not for writing static content, such as a web page of

elements containing

2条回答
  •  悲哀的现实
    2021-02-05 12:36

    From the jade github page:

    p.
    foo asdf
    asdf
     asdfasdfaf
     asdf
    asd.
    

    produces output:

    foo asdf asdf asdfasdfaf asdf asd .

    The trailing period after the p is what you're looking for.

提交回复
热议问题