xebialabs / blueprints

Blueprints for XL DevOps Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are Nested Go Templates Supported?

opened this issue · comments

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

Closing issue and moving to xebialabs/blueprint-cli#4