I am using Twig to conditionally display a piece of HTML (or trying to, anyway).
What is wrong with this? Everything works okay until I put in the if-endif pair.
{% set numberOfPartners = partners|length %}
(% if numberOfPartners > 1 || partners[0].special != 1 %}
<div id="headline">
{% trans %}
Lorem ipsum dolor
{{ numberOfPartners }}
<br />
{% endtrans %}
</div>
{% endif %}
The error I get is
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unknown tag name "endif" in ...
trans
here: twig.sensiolabs.org/doc/templates.html – OZ_