freejung/getResources — comment on commit 5a4a8d7341bcfc434b486eded8ee64e738b3b649
File:  line 0
By freejung:

Added support for conditional templates. This allows using a different template depending on a field or TV of the resource being displayed.

New parameters:

$tplCondition - the name of the field or TV (including TV prefix) on which the template depends

$tplOperator - optional comparison operator - defaults to equals - supports all operators used by the If snippet (uses the same code)

$conditionalTpls - JSON array of values for comparison to $tplCondition and corresponding chunk names to use as a template if the comparison succeeds