Imagined syntax: {{^field}}...{{/field}}
Standard usecase: Render a list, but show something different when that list is empty.
Other imagined usecase: An Option can be iterated over for the Some(_) case, it makes sense to have this syntax work for the None case. Similarly for Result.
When using a Result in a negative section, maybe expose the Err(_) value as {{.}}?
Imagined syntax:
{{^field}}...{{/field}}Standard usecase: Render a list, but show something different when that list is empty.
Other imagined usecase: An
Optioncan be iterated over for theSome(_)case, it makes sense to have this syntax work for theNonecase. Similarly forResult.When using a
Resultin a negative section, maybe expose theErr(_)value as{{.}}?