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

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -