include JST template inside JST

172 Views Asked by At

I am using underscopre ( grunt-contrib-jst) JST template to render VIEW.

However, I am in a situation where I need to make reusable html as a partials from template.

can I make a separate .tmpl & include it in parent .tmpl ?

my code looks like

var tmpl = my.namespace['template/hello.tmpl'];
$("#content").html(tmpl({  
   data:data
}));

//where as I need to spearate templates inside hello.tmpl
0

There are 0 best solutions below