Writing Pure HTML in Jade

2019-07-18 00:11发布

Jade appears to choke on WebGL shader/fragment blocks when writing in Jade format, so I would like to write them as straight HTML while still being able to write Jade around it. Is this possible?

标签: webgl pug
1条回答
三岁会撩人
2楼-- · 2019-07-18 00:59

These:

html
    body
        | <h1>Title</h1>
        | <p>foo bar baz</p>

compiles into:

<!DOCTYPE html>
<html>
    <body>
        <h1>Title</h1>
        <p>foo bar baz</p>
    </body>
</html>

hope it helps

查看更多
登录 后发表回答