summaryrefslogtreecommitdiffstats
path: root/web/js/labitrack.d/30-setcontent.js
blob: d33a4c8cc2ccf7d863de65c4f5cd7f8797fb2ef3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
$(function(){
	var template = λ.template = function (tmpl, context){
		return Handlebars.templates[tmpl](context);
	};

	var tmplcontent = $('#tmplcontent');
	var h1 = $('h1');
	λ.setcontent = function(tmpl, context) {
		tmplcontent.html(template(tmpl, context));
		h1.html(tmplcontent.find('.tmplheader').html());
	};
});