Express 翡翠当量<;%=%&燃气轮机;

Express 翡翠当量<;%=%&燃气轮机;,express,pug,Express,Pug,我正在尝试使用expresstoastr()在我的express应用程序上实现toastr通知。文件说明在控制器中包含以下内容后: if (err) { req.toastr.error('Invalid credentials.'); } else { req.toastr.success('Successfully logged in.', "You're in!"); } 我们必须在视图中包含库。没关系。但我们还必须包括以下内容: <%= req.toastr.rend

我正在尝试使用expresstoastr()在我的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()}

相关职位: