I use underscore.js for HTML Templating, set to use mustache syntax, like this: {{ }}
I have this code:
<% if (typeof(date) != "undefined") { %>
<span class="date"><%= date %></span>
<% } %>
How can I translate it to an underscore.js mustache-style template, using {{ }}?
I use:
Then instead of
<%= … %>use{{ … }}and instead of<% … %>use{[ … ]}