What is the proper way to check for existence of variable in an EJS template (using ExpressJS)?

前端 未结 13 2001
一向
一向 2020-12-12 16:02

On the EJS github page, there is one and only one simple example: https://github.com/visionmedia/ejs

Example

<% if (user) { %>
    

&

13条回答
提交回复
热议问题