javascript - How to use django template in a Dojo widget's templateString? -
i have dojo widget created. uses html template string show block. need use django template logics use within template string.
say,
var template = "<div>"+ "{% if ${showhello}%}"+ "hello"+ "</div>"
and widget declaration,
templatedlistitem = declare( [listitem, templatedmixin], { label: "my label", variableheight: true, templatestring: template } );
but, django template showing in raw form. how use django templates in html template string?thanks in advance.
Comments
Post a Comment