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

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -