summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-11 10:34:08 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-04-13 09:18:17 +0200
commit2dbdf38a5411c554146ddd915a0aea3b2eaf4407 (patch)
tree333aaaac81aff606b1e6d39adc1663cec0fa8a32 /scripts
parentf8c4e1690a462a2dcafa05aeaab65d1fad6df61e (diff)
resources: Add `key` to reources.GetRemote options map
If set, `key` will be used as the only cache key element for the resource. The default behaviour is to calculate the key based on the URL and all the options. This means that you can now do: ``` {{ $cacheKey := print $url (now.Format "2006-01-02") }} {{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }} ``` Fixes #9755
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions