Expand description
Types to represent the HCL template sub-language.
Structs§
- A type representing the
%{ else }
sub-expression and the template that follows after it within anIfDirective
. - A type representing the
%{ endfor }
sub-expression within aForDirective
. - A type representing the
%{ endif }
sub-expression within anIfDirective
. - The template
for
directive is the template equivalent of the for expression, producing zero or more copies of its sub-template based on the elements of a collection. - A type representing the
%{ for key_var, value_var in collection_expr }
sub-expression and the template that follows after it within aForDirective
. - A heredoc template is introduced by a
<<
sequence and defines a template via a multi-line sequence terminated by a user-chosen delimiter. - The template
if
directive is the template equivalent of the conditional expression, allowing selection of one of two sub-templates based on the condition result. - A type representing the
%{ if cond_expr }
sub-expression and the template that follows after it within anIfDirective
. - An interpolation sequence evaluates an expression (written in the expression sub-language), converts the result to a string value, and replaces itself with the resulting string.
- A type representing the HCL template sub-languange in the context of a quoted string literal.
- The main type to represent the HCL template sub-languange.
Enums§
- A template directive that allows for conditional template evaluation.
- An element of an HCL template.
- Controls the whitespace strip behaviour for template interpolations and directives on adjacent string literals.
Type Aliases§
- An owning iterator over the elements of a
Template
. - An iterator over the elements of a
Template
. - A mutable iterator over the elements of a
Template
.