Skip to content

Commit

Permalink
docs: Update description of querify
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraftsman committed Dec 3, 2016
1 parent 0ba9fb9 commit 01b8bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/templates/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ e.g. `<a href="/tags/{{ . | urlize }}">{{ . }}</a>`

### querify

Takes a set of key-value pairs and returns a [`url.Values`](https://godoc.org/net/url#Values) object. The [`Encode`](https://godoc.org/net/url#Values.Encode) method turns the pairs into a [query string](https://en.wikipedia.org/wiki/Query_string) that cen be postpended to a url. E.g.
Takes a set of key-value pairs and returns a [`url.Values`](https://godoc.org/net/url#Values) object. The [`Encode`](https://godoc.org/net/url#Values.Encode) method turns the pairs into a [query string](https://en.wikipedia.org/wiki/Query_string) that can be appended to a url. E.g.

<a href="https://www.google.com?{{ (querify "q" "test" "page" 3).Encode | safeHTML }}">Search</a>

Expand Down

0 comments on commit 01b8bc1

Please sign in to comment.