Render

HCL rendering functions.

FunctionDescription
defaultsDefault Terraform-style rendering options.
document nodesRenders an HCL document with default options.
join nodesRenders top-level nodes separated by a blank line.
node valueRenders a single HCL node with default options.
withOptions options nodesRenders 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 : RenderOptions
  • nodes : Node list

Returns string