docassemble
docassemble copied to clipboard
Problems with defined terms under some circumstances
variable name: source
data:
text1: {defined term}
text2: a {defined term} that is different
---
mandatory: True
question: This question uses a ${ source['text1'] } and ${ source['text2'] }, and then the {defined term} itself.
terms:
- defined term: this is the definition.
---
If you run the above interview on the latest version, the output looks like this:
It's not clear to me what's going on, there.
YAML lets you use the { and } characters to designate an inline dictionary data structure. You just need to be explicit about what you want YAML to interpret as a string:
variable name: source
data:
text1: "{defined term}"
text2: a {defined term} that is different