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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -