direct-fuel-injection/bbGrid — pull request #29 by gheeres (2013-07-23 18:32:47+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
};