Underscore template throwing variable not defined error

You used to be able to parse and fill in an Underscore template in one go like this: var html = _.template(template_string, data); But as of Underscore 1.7.0, the second argument to _.template contains template options: template _.template(templateString, [settings]) Compiles JavaScript templates into functions that can be evaluated for rendering. […] The settings argument should … Read more