Skip to content

Instantly share code, notes, and snippets.

@daytonn
Created April 4, 2013 14:36
Show Gist options
  • Save daytonn/5310873 to your computer and use it in GitHub Desktop.
Save daytonn/5310873 to your computer and use it in GitHub Desktop.
Underscore template
var myTemplate = _.template('<h1><%= myvar %></h1>');
myTemplate({ myvar: 'foo' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment