bunti-node/js/modules/util.js

18 lines
283 B
JavaScript
Raw Normal View History

// 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"));