玉当量 <%= %>

Jade equivalent of <%= %>

我正在尝试使用 express-toastr (https://github.com/kamaln7/express-toastr) 在我的 express 应用程序上实现 toastr 通知。文档说在控制器中包含以下内容后:

 if (err)
 {
 req.toastr.error('Invalid credentials.');
 } else {
 req.toastr.success('Successfully logged in.', "You're in!");
 }

我们必须在视图中包含库。没关系。但我们还必须包括这样的内容:

<%= req.toastr.render() %>

这个在玉石上相当于什么?

谢谢

使用: div#{req.toastr.render()}

相关post:https://www.filosophy.org/post/34/using_javascript_functions_within_the_jade_templating_language/