如何在下面的玉代码!=工作.. != messages()
什么!=在玉/帕格中做什么?
extends layout
block content
.spacer
.container
.row
.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
a(class='btn btn-tiny btn-primary' href='/manage/categories/add') Create Category
h1= title
small
a(href='/manage/articles') Manage Articles
!= messages()
table(class='table table-striped')
tr
th Category Title
th
each category, i in categories
tr
td #{category.title}
td
a(class="btn btn-tiny btn-default" href="/manage/categories/edit/#{category._id}") Edit
app.js
app.use(require('connect-flash')());
app.use(function (req, res, next) {
res.locals.messages = require('express-messages')(req, res);
next();
});
这似乎是一种方式来输出内容,而不需要父标签。 –
有点文件记载[这里](http://jade-lang.com/reference/code/)(_“未转义的缓冲代码”_)。 – robertklep