Skip to content

Are Nested Go Templates Supported? #4

Description

I noticed that in the XL Blueprint documentation you link out to https://curtisvermeeren.github.io/2017/09/14/Golang-Templates-Cheatsheet#nesting

I have not been able to get nested templates to work with blueprints. Is there something wrong that I am doing? Is it even supported. It's hard to tell by the documentation.

test.tmpl

{{define "test"}}
testing nested template
{{end}}

main.tf.tmpl

{{template "test"}}

Error

Error while creating Blueprint: template: infrastructure/terraform/main.tf.tmpl:82:11: executing "infrastructure/terraform/main.tf.tmpl" at <{{template "test"}}>: template "test" not defined

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions