Skip to content

Instantly share code, notes, and snippets.

@jkakar
Created May 31, 2012 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkakar/2840834 to your computer and use it in GitHub Desktop.
Save jkakar/2840834 to your computer and use it in GitHub Desktop.
// URI encode some text.
Handlebars.registerHelper('encode', function(property) {
var text = Ember.getPath(this, property);
return encodeURIComponent(text);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment