Variables
This page documents the built-in variables available for use in your template files. These variables provide useful runtime and environment information that you can reference directly.
Note
The set of built-in variables may expand in the future. If you need additional variables, feel free to request them!
Time¶
.Now¶
The current date and time when the template is rendered, as a Go time.Time object.
Syntax¶
Examples¶
Usage¶
Tip
To access environment variables within your templates, use the dedicated .Env variable or its env function counterpart.
For details and examples, see the dedicated Environments page.