Document if_undefined #688

Closed
ArthurClemens opened this Issue Nov 13, 2013 · 3 comments

Comments

Projects
None yet
4 participants
Contributor

ArthurClemens commented Nov 13, 2013

This is a useful feature but unfortunately hidden from normal users.

Examples I found in Zotonic templates:

{% if id.feature_show_address|if_undefined:`true` %}checked{% endif %}

{% with blocks|if_undefined:(m.admin_blocks.list[id]) as blocks %}{% endwith %}
Owner

arjan commented Nov 13, 2013

Yes... sorry about that!

I need to document it indeed.

arjan was assigned Nov 13, 2013

Owner

kaos commented Nov 16, 2013

Indeed, but there is a copy-paste bug in that doc!

arjan closed this in 6b22b6e Apr 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment