Any opinion on this?
On Jul 3, 3:58 pm, Voltron <[email protected]> wrote:
> I want to render a block conditionally. Given this block:
>
> {% block title %}{% endblock %}
>
> According to the docs, I could then do this:
>
> {% if authorized %}
> {{ self.title() }} Hello authorized robot!
> {% else %}
> {{ self.title() }}
> {% endif %}}
>
> Is this correct? Is this the right way to go about this?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---