mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2025-02-05 15:50:04 +00:00
![Rohan Kumar](/assets/img/avatar_default.png)
Use partialCached to avoid any perf penalty. TODO: limit the scope I pass to them. I noticed a teeny tiny perf improvement after doing this, probably because now some giant data structures only need to be generated once.
5 lines
212 B
HTML
5 lines
212 B
HTML
{{- $rewritesDict := dict "" "" -}}
|
|
{{- range $i, $r := (getCSV "," "/csv/rewrites.csv") -}}
|
|
{{- $rewritesDict = merge $rewritesDict (dict (index $r 0) (index $r 1)) -}}
|
|
{{- end -}}
|
|
{{- return $rewritesDict -}}
|