var site=site||{};site.template=site.template||{},site.templates=site.templates||{},function(e){site.template.get=function(t){var a=site.templates[t.name];_.isUndefined(a)&&console.log("The template "+t.name+" cannot be found");var n={globals:{variables:Drupal.settings.globals_variables,t:site.translations}},i=e.extend({},t.data,n,a.data),s={};_.isUndefined(a.partials)||e.each(a.partials,(function(e,t){if(_.isUndefined(site.templates[t]))throw new Error("The partial "+t+" cannot be found");s[e]=site.templates[t].content}));var l=Mustache.render(a.content,i,s);if(_.isFunction(t.callback)){var r=t.callback(l);if(!_.isUndefined(r))return r}return l}}(jQuery);
//# sourceMappingURL=template.min.js.map
