Skip to content

Instantly share code, notes, and snippets.

@JollyWizard
Last active August 29, 2020 00:24
Show Gist options
  • Save JollyWizard/f7513cd54d27e1ace608f1c5cf409442 to your computer and use it in GitHub Desktop.
Save JollyWizard/f7513cd54d27e1ace608f1c5cf409442 to your computer and use it in GitHub Desktop.
[2020-08-28] ytt example that compiles in the playground
#@ def yml_array_literal():
- a
- b
#@ end
---
ymlkey: #@ yml_array_literal()
@JollyWizard
Copy link
Author

Demonstrates fix for broken example:
https://gist.github.com/JollyWizard/4aa2acf3e9692fdb4ff022c6d771dcaf

Document separator --- must be used or yamlfragments in the def _() will cause the compilation to break.

@JollyWizard
Copy link
Author

I believe this is only a problem at the beginning of a document before information on nesting alignments is established.

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