Using requirejs to load templates