Closed bitti closed 6 years ago
This example in https://github.com/yogthos/Selmer#str
So you can do crazy stuff like: (render "{{people|length-is:2|str|join:\"-\"}} lad{{people|pluralize:\"y\":\"ies\"}}" {:people [1 2]}) => "t-r-u-e ladies"
yields [-:-s-a-f-e- -t-r-u-e-] ladies for me. But if I insert a last| before the str as in
[-:-s-a-f-e- -t-r-u-e-] ladies
last|
str
(render "{{people|length-is:2|last|str|join:\"-\"}} lad{{people|pluralize:\"y\":\"ies\"}}" {:people [1 2]})
it works for me as advertised. Is this expected and the documentation is just outdated?
Ah yeah that's a docs typo, thanks for the heads up.
This example in https://github.com/yogthos/Selmer#str
yields
[-:-s-a-f-e- -t-r-u-e-] ladies
for me. But if I insert alast|
before thestr
as init works for me as advertised. Is this expected and the documentation is just outdated?