Avoid rendering an HTML element via server-side condition data

You can use all features from ejs templates, so conditions should work.

<% if (_('condition')) { %>
<p>Do not render this paragraph</p>
<% } %>

Use _('expression') to evaluate server connect expressions.

3 Likes