Comment

Comment by mdaniel

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?
parent mdaniel 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton