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
function require_template(templateName) { | |
var template = $('#template_' + templateName); | |
if (template.length === 0) { | |
var tmpl_dir = './templates'; | |
var tmpl_url = tmpl_dir + '/' + templateName + '.tmpl'; | |
var tmpl_string = ''; | |
$.ajax({ | |
url: tmpl_url, | |
method: 'GET', |