Skip to content

Commit

Permalink
Update Defer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jun 25, 2024
1 parent 012162e commit fafbf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/functions/templates/Defer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")) }}
Expand Down

0 comments on commit fafbf65

Please sign in to comment.