Skip to content

Instantly share code, notes, and snippets.

@pivotaljohn
Created April 22, 2020 18:49
Show Gist options
  • Save pivotaljohn/992c9bbc3c9f6743a1db8df7bfbe8a24 to your computer and use it in GitHub Desktop.
Save pivotaljohn/992c9bbc3c9f6743a1db8df7bfbe8a24 to your computer and use it in GitHub Desktop.
#@ load("@ytt:template", "template")
#@ def my_function():
#@ if True:
a: b
#@ end
#@ end
---
#@ def my_function2():
c: d
#@ end
---
output:
_: #@ template.replace(my_function())
_: #@ template.replace(my_function2())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment