Created
September 28, 2011 18:20
-
-
Save bycoffe/1248756 to your computer and use it in GitHub Desktop.
Load JS template from external file
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
loadTemplate = (filename) -> | |
jQuery.ajax({ | |
url: filename, | |
async: false, | |
}).responseText |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment