Skip to content

Possible to have arrays as query params? #8

@shutupflanders

Description

@shutupflanders

It would be great if we could pass arrays into the query parameters, something like:

?var[]=string1&var[]=string2&var[]=string3

So we can then do:

<ul>
  {{ range $key, $value := .var }}
     <li>{{ $value }}</li>
  {{ end }}
</ul>

I'm looking at reducing the amount of duplicated elements in the templates, so looping over a range would be really helpful in this case.

Please note: I'm a complete novice at golang, so sorry If the above example wouldn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions