Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Right now, if you use If and have a then parameter, the template looks odd, since else isn't in the same nesting and indentation level as the then part. Example:
<t:if test="something"> something is true <p:else> something is false </p:else> <t:if>
A then parameter would allow everything to be in the same nesting and indentation level. Example:
<t:if test="something"> <p:then> something is true </p:then> <p:else> something is false </p:else> <t:if>
If then is missing, everything works as in the past (if test is true, render the body of the If except for the else block; otherwise, render the else block). If then is present, everything outside then and else won't appear regardless of the test being true or false.
else should also be present in the Unless component, since it and If have almost all their logic inherited from AbstractConditional, their superclass.
Attachments
Issue Links
- mentioned in
-
Page Loading...