condition.context.isCli ViewHelper <vhs:condition.context.isCli>

Condition: Is context CLI?

A condition ViewHelper which renders the then child if current context being rendered is CLI.

Examples

<!-- simple usage, content becomes then-child -->
<v:condition.context.isCli>
    Hooray for CLI contexts!
</v:condition.context.isCli>
<!-- extended use combined with f:then and f:else -->
<v:condition.context.isCli>
    <f:then>
       Hooray for CLI contexts!
    </f:then>
    <f:else>
       Maybe BE, maybe FE.
    </f:else>
</v:condition.context.isCli>

Arguments

then

DataType

mixed

Required

false

Description

Value to be returned if the condition if met.

else

DataType

mixed

Required

false

Description

Value to be returned if the condition if not met.