Skip to content

Single form of <txp:if_tags />#817

Merged
bloatware merged 1 commit intodevfrom
bloatware-if-tags
Oct 24, 2016
Merged

Single form of <txp:if_tags />#817
bloatware merged 1 commit intodevfrom
bloatware-if-tags

Conversation

@bloatware
Copy link
Copy Markdown
Member

Returns true or false, output as '1' or '' when parsed.

Returns true or false, output as '1' or '' when parsed.
@bloatware bloatware merged commit e344492 into dev Oct 24, 2016
@bloatware bloatware deleted the bloatware-if-tags branch October 24, 2016 12:18
@philwareham
Copy link
Copy Markdown
Member

Can you provide a usage example so I can update the documentation? Cheers.

@bloatware
Copy link
Copy Markdown
Member Author

Sure, thanks, Phil. You might say that <txp:if_something /> is equivalent to <txp:if_something>1</txp:if_something>. Example:

<txp:comments_invite textonly='<txp:if_comments_disallowed />' />

is the same as

<txp:comments_invite textonly='<txp:if_comments_disallowed>1</txp:if_comments_disallowed>' />

but shorter and easier to parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants