Inversion ‘elsif’ tag.
This tag adds a conditional logical switch to an IfTag. If the IfTag’s condition was false, but the attribute or methodchain of the elsif is true, start rendering.
<?if attr ?> ... <?elsif attr ?> ... <?elsif attr.methodchain ?> ... <?end?>
- inverted RW
Invert the tag’s renderstate if created with the ‘not’ operator.
Create a new
Parsing callback – check to be sure the node tree can have an ‘elsif’ tag appended to it (i.e., it has an opening ‘if’ tag).
Toggle rendering for the elsiftag’s container if rendering hasn’t yet been toggled.
Always render as an empty string.