我有以下示例代码
extends layout
block append content
- var user = {name:'hello word'}
include includes/header
div.container
p
#{user.name}
#blogs
- each blog in blogs
div.blog
strong
div.title
a(href="/blog/"+blog._id)!= blog.title
small
div.created_at= blog.created_at
div.body= blog.body.substring(0,100) + ' ... '
a(href="/blog/"+blog._id)!= 'Read More'
include includes/footer
这会呈现 HTML 输出,其中包含
<p>
<hello world><hello>
</p>
任何人都可以根据翡翠教程解释这里发生了什么,这应该正确呈现......