mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 12:34:47 -04:00
Update Defer.md
This commit is contained in:
parent
012162e0d2
commit
fafbf65669
@ -14,7 +14,7 @@ aliases: [/functions/templates.defer]
|
||||
|
||||
{{< new-in "0.128.0" >}}
|
||||
|
||||
In some rare use cases, you may need to defer the execution of a template until after all sites and output formats have been rendered. One such example could be [TailwindCSS](https://github.com/bep/hugo-starter-tailwind-basic) using the output of [hugo_stats.json](https://gohugo.io/getting-started/configuration/#configure-build) to determine which classes and other HTML identifiers are being used in the final output:
|
||||
In some rare use cases, you may need to defer the execution of a template until after all sites and output formats have been rendered. One such example could be [TailwindCSS](/functions/css/tailwindcss/) using the output of [hugo_stats.json](/getting-started/configuration/#configure-build) to determine which classes and other HTML identifiers are being used in the final output:
|
||||
|
||||
```go-html-template
|
||||
{{ with (templates.Defer (dict "key" "global")) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user