html - Syntax of JavaScript contains <%..%> -


i'm building project on top of existing code written developer. it's javascript project build chrome extension. 1 of html files has code written in following format:

<% $.each(this, function(index, value) { %>  <% var valpart = value.from_mail.split('<'); %> <% var name = valpart[0]; %> <% var ma_name= name; %> 

and of html tags on page contain elements like

<a class='view_name' title='<%= value.filename %>' href='<%= getviewurl(value.viewurl) %>'><%= value.filename %></a>  

getviewurl function defined in code. main query code between <%...%>

now, have fair idea embedded ruby html files use <% ... %> creating code elements inside html file. know fact ruby isn't being used in project or erb files matter. idea be?

looks underscore template: http://underscorejs.org/#template


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -