I'm building a project on top of some existing code written by another developer. It's a JavaScript project to build a chrome extension. One of the HTML files has some code written in the following format:
<% $.each(this, function(index, value) { %>
<% var valPart = value.from_mail.split('<'); %>
<% var name = valPart[0]; %>
<% var ma_name= name; %>
And some of the HTML tags on the page contain elements like
<a class='view_name' title='<%= value.fileName %>' href='<%= getViewUrl(value.viewUrl) %>'><%= value.fileName %></a>
getViewUrl
is a function defined in the code. My main query is with the code between the <%...%>
Now, I have a fair idea that Embedded Ruby HTML files use <% ... %>
for creating code elements inside the HTML file. I know for fact that Ruby isn't being used in this project or even ERB files for that matter. Any idea what this could be?