Need refresh in order that twig condition to be seen in html -


i want display depending on user role. working need refresh page in order changes occur. think problem because of html, displayed first. how can resolve this? no need refresh in order work..?

{% include "@file" {role : app.security.token.user._access } %} 

@file

<th>address</th> {% if role == 'admin' %}     <th>{{'role'}}</th> {% endif %} 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -