Handlebar Helper Functions

unbxdIf

FUNCTIONDESCRIPTION
PurposeYou can use the unbxdIf function if you need to render a block when two arguments are the same.
ArgumentsunbxdIf accepts two arguments and evaluates to true incase of physical equality of the arguments
Usage

The following example Renders “price” text when the value of facet_name property is equal to “v_PriceRange_uFilter”, else it would render the value of facet_name.

{{#unbxdIf ../facet_name “v_PriceRange_uFilter”}} Price{{else}}{{../facet_name}}{{/unbxdIf}}

prepareFacetValue

FUNCTIONDESCRIPTION
PurposeThe prepareFacetValue function returns three non breaking spaces if the argument value is empty.
ArgumentsprepareFacetValue accepts one argument and returns three non breaking spaces if the argument value is empty, else would return the value itself.
Usage{{#prepareFacetValue value}}{{/prepareFacetValue}}











prepareFacetValue


Purpose


The prepareFacetValue function returns three non breaking spaces if the argument value is empty.


Arguments


prepareFacetValue accepts one argument and returns three non breaking spaces if the argument value is empty, else would return the value itself.


Usage


{{#prepareFacetValue value}}{{/prepareFacetValue}}