python - How to retrieve variable declared in javascript script tag -


I have an html file in which I have set a variable named inside the script tag, flxweb_user . I am using Genji in the same HTML. I need to check that this value corresponds to a specific value for flxweb_user and in this case it is necessary to use this variable through zinc if the condition.

Sample code:

  & lt; Script type = "text / javascript" & gt; Flxweb_user = somevalue; & Lt; / Script & gt;  

If in statement I need to check this value

  {% if c.user.role.name == 'teacher'% } And lieutenant; Period & gt; {{Book.title}} "& gt; {item.Display_label ()}} & {Item.display_label ()}} & lt; / a & gt; & lt; / span & gt; {% Endif %}  


Comments