Skip to content

Instantly share code, notes, and snippets.

@tosh
Created December 18, 2010 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tosh/746617 to your computer and use it in GitHub Desktop.
Save tosh/746617 to your computer and use it in GitHub Desktop.
jquery tmpl templating function for use with jammit
# Basically a copy of prior art for mustache https://gist.github.com/234982
# Add a jquery-tmpl templating function to your CoffeeScript:
window.jammit_jquery_template = (templateString) ->
-> jQuery.tmpl(templateString, arguments[0], arguments[1])
# And then, in assets.yml, you can set "template_function" to "jammit_jquery_template".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment