-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tpl/collections: Allow querify to accept a map argument #13131
Comments
We need to remember to sort the keys. |
The existing code calls Encode before returning the result.
So unless I'm missing something, I think that covers the sort. |
You're right, I didn't look at the code. |
The
collections.Querify
template function accepts either of the following argument forms:But it would convenient if we could do:
For example, in our embedded youtube shortcode we:
Build a map of parameters
Convert the map into a slice with this construct:
Pass the slice to
collections.Querify
It would be more elegant if we could remove step 2 above.
The text was updated successfully, but these errors were encountered: