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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -