direct-fuel-injection/bbGrid — pull request #30 by gheeres (2013-07-24 19:56:03+00:00)
Title: Ensure that _.templateSettings are set correctly.

If _.templateSettings are overridden to change the syntax (i.e. handlebars) by another library, then the templating settings are broken for bbGrid which relies upon the default template settings.

// Underscore Default
_.templateSettings = {
evaluate : /<%([\s\S]+?)%>/g,
interpolate : /<%=([\s\S]+?)%>/g,
escape : /<%-([\s\S]+?)%>/g
};

// Handlebars like syntax
_.templateSettings = {
interpolate: /\{\{(.+?)\}\}/g,
evaluate: /\[\[(.+?)\]\]/g
};

Note: Earlier pull request has extraneous ')'