Handlebar Helper Functions
unbxdIf
FUNCTION | DESCRIPTION |
---|---|
Purpose | You can use the unbxdIf function if you need to render a block when two arguments are the same. |
Arguments | unbxdIf 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
FUNCTION | DESCRIPTION |
---|---|
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}} |
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}}
Updated 19 days ago