hugo/tpl
Bjørn Erik Pedersen 7855b47f07 Add a cache for lexers.Get
```
name                            old time/op    new time/op    delta
Codeblocks/Default-10              152ms ±11%      12ms ± 1%  -92.44%  (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10     142ms ± 0%       7ms ± 0%  -95.36%  (p=0.029 n=4+4)

name                            old alloc/op   new alloc/op   delta
Codeblocks/Default-10             11.9MB ± 0%    11.7MB ± 0%   -1.59%  (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10    4.62MB ± 1%    4.43MB ± 0%   -4.08%  (p=0.029 n=4+4)

name                            old allocs/op  new allocs/op  delta
Codeblocks/Default-10               209k ± 0%      209k ± 0%   -0.03%  (p=0.029 n=4+4)
Codeblocks/Hook_no_higlight-10     68.4k ± 0%     68.3k ± 0%   -0.06%  (p=0.029 n=4+4)

```
2022-11-24 13:18:33 +01:00
..
cast tpl: Improve godoc 2022-05-06 19:43:22 +02:00
collections Fix raw TOML dates in where/eq 2022-06-07 13:02:58 +02:00
compare Fix raw TOML dates in where/eq 2022-06-07 13:02:58 +02:00
crypto tpl/crypto: Add example for FNV32a 2022-04-28 17:47:17 +02:00
data Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
debug all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
diagrams all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
encoding tpl/encoding: Add noHTMLEscape option to jsonify 2022-10-24 17:21:42 +02:00
fmt tpl: Improve godoc 2022-05-06 19:43:22 +02:00
hugo all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
images Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
inflect all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
internal tpl/internal: Sync go_templates 2022-11-14 22:31:50 +01:00
js all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
lang Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
math tpl: Improve godoc 2022-05-06 19:43:22 +02:00
openapi/openapi3 Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
os Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
partials Revise the use of htime.Since/htime.Now 2022-05-09 14:18:40 +02:00
path tpl/path: Add path.BaseName function 2022-06-06 09:36:16 +02:00
reflect all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resources resources/tpl: Add a test for resources.Get 2022-11-17 18:09:54 +01:00
safe tpl: Improve godoc 2022-05-06 19:43:22 +02:00
site all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
strings Fix Plainify edge cases 2022-05-25 17:55:23 +02:00
templates all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
time Use configured timeZone for the clock 2022-05-08 16:56:26 +02:00
tplimpl Cache when not found in LookupLayout 2022-07-13 15:49:00 +02:00
transform Add a cache for lexers.Get 2022-11-24 13:18:33 +01:00
urls Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
template.go Fix Plainify edge cases 2022-05-25 17:55:23 +02:00
template_info.go Add --printUnusedTemplates 2022-02-15 20:01:57 +01:00
template_test.go Fix Plainify edge cases 2022-05-25 17:55:23 +02:00