{% load GrammarFormatHelpers %} {% load DjangoHelpers %} {% if currentRow.typename == "RuleDocumentation" %} {{currentRow.name}} EBNF Rule {% elif currentRow.typename == "AttrRuleDocumentation" %} {{currentRow.name}} Attribute Rule {% elif currentRow.typename == "TagDocumentation" %} {{currentRow|makeDisplayableTag}} Element Rule {% else %} Error Unknown type of rule! {% endif %} {% for lang in doc.languages %} {% if lang|isIn:currentRow.languages %}✓{% else %} {% endif %} {% endfor %} {% if currentRow.typename == "TagDocumentation" %} {% if currentRow.tagRules|length > 1%} {% for tagRule in currentRow.tagRules %} {{tagRule.name}} Element Rule {% for lang in doc.languages %} {% if lang|isIn:tagRule.languages %}✓{% else %} {% endif %} {% endfor %} {% endfor %} {% endif %} {% endif %}