terra_madre/render
HCL Renderer
Renders HCL AST types to properly formatted HCL text.
Values
pub fn render_config(config: terraform.Config) -> String
Render a complete Terraform configuration to HCL text.
pub fn render_expr(expr: hcl.Expr) -> String
Render an expression to HCL text. Note: For inline rendering (no multi-line formatting), use this function. For rendering within blocks where lists/maps should be multi-line, use render_expr_indented.
pub fn render_expr_indented(
expr: hcl.Expr,
indent: Int,
) -> String
Render an expression with indentation support for multi-line lists and maps. The indent parameter specifies the current indentation level (number of 2-space indents).