|
|
|
|
|
by mdaniel
1115 days ago
|
|
You are misremembering, Jinja uses python syntax like a sane language so it would be `{% set foo = ["alpha", "beta"] %} {{ foo[1] }}` not `{{ foo.[1] }}` like they use. I actually probably wouldn't have chirped about it if they used the alternate syntax (also supported by Jinja) of `{{ foo.1 }}` but the belt-and-suspenders of requiring the array brackets and the dot is just ... why? |
|