Hi,
I am using the micro template (Micro Template) in my project. Below is the sample
<script type="text/html" id="user_tmpl">
<% for ( var i = 0; i < users.length; i++ ) { %>
<li><a href="<%=users[i].url%>"><%=users[i].name%></a></li>
<% } %>
</script>
Is it possible to call a javascript function say a simple function like this:
function SubstringText(input,length) {
return input.substring(1, length);
}
on users[i].name property ?