|
// js/modules/util.js
|
|
// utility functions for template loading / ..
|
|
|
|
(function (Util) {
|
|
|
|
Util.loadTemplateAjax = function(path, callback) {
|
|
$.ajax({
|
|
url: path, //ex. js/templates/mytemplate.handlebars
|
|
cache: true,
|
|
success: callback
|
|
});
|
|
}
|
|
|
|
})(app.module("util"));
|
|
|
|
|
|
|