玉模板引擎迭代不起作用

jade templating engine iteration not working

好吧,我敢肯定我犯了一个非常愚蠢的错误,但我已经为此工作了一段时间,现在一片空白。到目前为止,我的 jade 模板中已经有了这个-

extends layout.jade
block content
    h1 Hello World!
    p.
        This is a hypothetical paragraph that I would use to write this.
        - var n = 0
        ul
            while n < 4
                li= n++

我用 express 和 res.render- 渲染它很好,但是循环和 ul 不工作。它只是作为纯文本出现。 jade 模板中的其他所有内容都按预期工作。我错过了什么?

block content
 h1 Hello World!
  p This is a hypothetical paragraph that I would use to write this.
    - var n = 0
    ul
        while n < 4
            li= n++

我认为"p."应该是"p"。我测试了 here 并且有效。