This is a proposal for a new txp:if_yield tag. Yield is all about content, by
default I've built in a "trim", so that whitespace is automatically ignored.
Usage:
<txp:if_yield> ... </txp:if_yield>
- condition true if txp:output_form tag in container mode, false if single tag
<txp:if_yield value="xyz"> ... </txp:if_yield>
- condition true if trimmed yield matches supplied value
<txp:if_yield value="xyz" trim="0"> ... </txp:if_yield>
- condition true if untrimmed yield matches supplied value
And to make life easier in other areas the current txp:yield tag could be given
a 'trim' attribute as well.
Enclosed is a patch.
Original issue reported on code.google.com by i...@greatoceanmedia.com.au on 16 Dec 2012 at 10:23
Original issue reported on code.google.com by
i...@greatoceanmedia.com.au
on 16 Dec 2012 at 10:23Attachments: