Created
December 18, 2010 16:01
-
-
Save tosh/746617 to your computer and use it in GitHub Desktop.
jquery tmpl templating function for use with jammit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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