hugo/tpl/tplimpl
Bjørn Erik Pedersen 644d55475d Add hash.XxHash
Also move the non crypto hash funcs into this new package.

This is much faster than e.g. MD5, especially for larger inputs:

```
BenchmarkXxHash/xxHash_43-10         	 9917955	       112.2 ns/op	      56 B/op	       4 allocs/op
BenchmarkXxHash/mdb5_43-10           	 6017239	       204.1 ns/op	      96 B/op	       3 allocs/op
BenchmarkXxHash/fnv32a_43-10         	14407333	        82.30 ns/op	      16 B/op	       1 allocs/op
BenchmarkXxHash/xxHash_4300-10       	 2916892	       409.7 ns/op	      56 B/op	       4 allocs/op
BenchmarkXxHash/mdb5_4300-10         	  159748	      7491 ns/op	    4912 B/op	       3 allocs/op
BenchmarkXxHash/fnv32a_4300-10       	  218210	      5510 ns/op	      16 B/op	       1 allocs/op
```

Fixes #12635
2024-07-06 14:08:15 +02:00
..
embedded tpl/tplimpl: Resolve render hook destinations with leading ./ 2024-05-21 09:38:25 +02:00
render_hook_integration_test.go tpl/tplimpl: Resolve render hook destinations with leading ./ 2024-05-21 09:38:25 +02:00
shortcodes.go all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
shortcodes_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
template.go Implement defer 2024-06-23 11:25:47 +02:00
template_ast_transformers.go Implement defer 2024-06-23 11:25:47 +02:00
template_ast_transformers_test.go Implement defer 2024-06-23 11:25:47 +02:00
template_errors.go Create default link and image render hooks 2024-01-30 20:12:19 +01:00
template_funcs.go Add hash.XxHash 2024-07-06 14:08:15 +02:00
template_funcs_test.go tpl/math: Add math.Rand template function 2023-12-29 19:37:27 +01:00
template_test.go Fix base template handling with preceding comments 2020-01-30 23:44:42 +01:00
templateFuncster.go Rework template handling for function and map lookups 2019-12-12 10:04:35 +01:00
templateProvider.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
tplimpl_integration_test.go tpl/tplimpl: Plainify title and description in twitter_cards.html 2024-05-14 14:45:04 +02:00