Hi! I'm looking into the changes in WireMock 3.6.0...
# documentation
b
Hi! I'm looking into the changes in WireMock 3.6.0 and I noticed that the array join helper is used as
join
in the codebase but the documentation refers to it as
arrayJoin
.
l
So, these are two different things. The
join
helper is the one from the [handlebars.java](https://github.com/jknack/handlebars.java/blob/master/handlebars/src/main/java/com/github/jknack/handlebars/helper/StringHelpers.java#L144) library we use in WireMock. We wanted one that would make it easy to create valid json and work as a block helper. We didn't want them to clash from a naming perspective so we called our new one
arrayJoin
and made is syntax compatible with the
join
helper so they could be a drop in replacement. The main difference is that our new one can be used as a block element:
Copy code
[{{#arrayJoin ',' myThings as |item|}}
{
"name{{item.id}}": "{{item.name}}"
}
{{/arrayJoin}}]
b
Ah thanks, I see it now. I was looking at the pull request that was linked to the GitHub release, but since then the helper got renamed to
arrayJoin
.
👍 1