Underscore.js templates use <%= %> for variable interpolation. Unfortunately that is also interpreted in a JSP (or GSP). Is there a way to use Underscore.js templates wit
Add the following interpolate and evaluate settings in your jsp page
_.templateSettings = {
interpolate: /\<\@\=(.+?)\@\>/gim,
evaluate: /\<\@(.+?)\@\>/gim,
escape: /\<\@\-(.+?)\@\>/gim
};
then you can write your qualify underscore variables,if and for statements with <@ @> instead of <% %> and will not conflict with jsp