I think there is a bug with the #replace helper where, if the "haystack" param (the input string) does not contain the "needle" param (the string to search for), the output is an empty string rather than the original string. I would expect the helper to retu the original string if no match is made.
For example, this will retu an empty string:
{{!-- where value="sometext", as in: {"value":"sometext"} --}}
{{#replace " " value}}+{{/replace}}
If that is the expected behavior, how can I call #replace when I don't know whether the input string will contain the value I want to replace?
Note that this example works as expected:
{{!-- where value="some text", as in: {"value":"some text"}
this correctly retus "some+text" --}}
{{#replace " " value}}+{{/replace}}
