Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (16 sloc) 0.516 kB
<%
/* @TODO not using underscore 1.2's escape method as it is
still stabilizing. Consider switching once 1.2 stable. */
obj.escape = function(string) {
return (''+string)
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}; %>
<% _(features).each(function (feature) { %>
<tr>
<% _(fields).each(function (value, key) { if (key !== '__id__') { %>
<td class='<% if (fields[key]) { print(fields[key].type) } %>'><%= obj.escape(feature[key]) %></td>
<% }}); %>
</tr>
<% }); %>
Jump to Line
Something went wrong with that request. Please try again.