Can I use conditional statements with EJS templates (in JMVC)? - Stack Overflow

PHOTO EMBED

Thu Sep 21 2023 12:16:38 GMT+0000 (Coordinated Universal Time)

Saved by @daavib #javascript

<% if(true){ %>
   <h1>foo</h1>
 <% } else{ %>  
   <h1>bar</h1>
<% } %>
content_copyCOPY

https://stackoverflow.com/questions/8216918/can-i-use-conditional-statements-with-ejs-templates-in-jmvc