jverzani/Mustache.jl

Iteration inconsistency

omus opened this issue · 1 comments

omus commented
julia> template = "{{#:vec}}{{.}}{{^.[end]}},{{/.[end]}}{{/:vec}}";

julia> render(template, vec=["a", "b", "c"])
"a,b,c"

julia> render(template, vec=fill("a", 3))
"aaa"

Thx! This line https://github.com/jverzani/Mustache.jl/blob/master/src/tokens.jl#L487 is the issue, but I need to sort out how to work around this.