jverzani / Mustache.jl

Port of mustache.js to julia
MIT License
128 stars 36 forks source link

Access array by index #162

Open Wikunia opened 9 months ago

Wikunia commented 9 months ago

How can I access elements by array index instead of dictionary key?

I tried the following:

Mustache.render("{{:a.:1}}", Dict(:a => [0]))
Mustache.render("{{:a.1}}", Dict(:a => [0]))
Mustache.render("{{:a[1]}}", Dict(:a => [0]))