hugo/tpl
Ujjwal Goyal c46fc838a9 tpl: Allow 'Querify' to take lone slice/interface argument
Querify can now take a lone string/interface slice (with string
keys) as a parameter, or multiple string parameters, to build
URL queries.

Querify earlier used 'Dictionary' to add key/value pairs to a
map to build URL queries. Changed to dynamically generate ordered
key/value pairs. Cannot take string slice as key (earlier
possible due to Dictionary).

Added tests and benchmarks for querify.

Closes #6735
2021-05-09 13:14:14 +02:00
..
cast all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
collections tpl: Allow 'Querify' to take lone slice/interface argument 2021-05-09 13:14:14 +02:00
compare all: Fix minor typos 2020-12-16 12:11:32 +01:00
crypto all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
data tpl/data: Add default user-agent header for getJSON requests 2021-02-01 09:31:02 +01:00
debug tpl: Add debug.Dump 2020-07-02 09:04:46 +02:00
encoding tpl: Extend Jsonify to support options map 2020-04-07 20:01:57 +02:00
fmt all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
images all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
inflect Fix some humanize issues 2021-02-14 18:30:59 +01:00
internal tpl: Add temporary patch to fix template data race 2021-02-18 14:11:48 +01:00
js all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
lang all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
math all: Fix minor typos 2020-12-16 12:11:32 +01:00
openapi/openapi3 deps: Update getkin/kin-openapi v0.60.0 => v0.61. 2021-04-30 14:27:21 +02:00
os tpl/os: remove 1mb limit for readFile. 2021-01-23 00:39:14 +01:00
partials tpl: Fix metrics hint tracking 2021-01-08 20:01:11 +01:00
path all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
reflect tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
resources Add Dart Sass support 2020-12-30 17:32:25 +01:00
safe all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
strings tpl: Fix countwords to handle special chars 2021-05-03 09:10:06 +02:00
templates all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
time all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
tplimpl Remove .Site.Authors from embedded templates 2021-04-29 17:07:05 +02:00
transform tpl: Remove the FuzzMarkdownify func for now 2021-03-30 20:57:31 +02:00
urls all: Fix minor typos 2020-12-16 12:11:32 +01:00
template.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
template_info.go Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
template_test.go Create lightweight forks of text/template and html/template 2019-12-12 09:59:34 +01:00