Error on missing context variable
Opened this issue · 3 comments
BebeSparkelSparkel commented
Is there a way to throw an error if there is a missing variable instead of defaulting to blank?
BebeSparkelSparkel commented
It would be useful to have a required syntax as a prefix to a variable name. Like $$!name$$
jgm commented
No, but you could write a function that walks the compiled template and compiles a list of variables, then use this to test against a Context.
BebeSparkelSparkel commented
I was thinking about that but it starts becoming more complex with the conditionals.