Render
HCL rendering functions.
| Function | Description |
|---|---|
defaults | Default Terraform-style rendering options. |
document nodes | Renders an HCL document with default options. |
join nodes | Renders top-level nodes separated by a blank line. |
node value | Renders a single HCL node with default options. |
withOptions options nodes | Renders an HCL document with explicit options. |
defaults
defaults
Default Terraform-style rendering options.
Returns RenderOptions
document
document nodes
Renders an HCL document with default options.
Parameters
nodes:Node list
Returns string
join
join nodes
Renders top-level nodes separated by a blank line.
Parameters
nodes:Node list
Returns string
node
node value
Renders a single HCL node with default options.
Parameters
value:Node
Returns string
withOptions
withOptions options nodes
Renders an HCL document with explicit options.
Parameters
options:RenderOptionsnodes:Node list
Returns string