when using underscore template i want to interpolate a value in anchor\'s href attribute like
a(href= \"<%= id %>\", class=\'products\') //underscore t
Use != instead of = to unescape.
In your case:
a.products(href!="<%= id %>")