I have data objects that follow standard formats... ie, common property names at all levels:
{
title: 'level one',
description: 'level one description',
children: [
{
title: 'level two',
desc: 'level two description'
}
]
}
The problem I'm running into is that if I have an empty string on any of the lower level objects' property, the outermost context's value is fetched. I understand the reasons for walking up the context tree (although I can't find it explained in the documentation!). However, I think an empty string is an explicit statement that "this is empty". Making empty strings truthy would also make template rendering more consistent across platforms.
I have data objects that follow standard formats... ie, common property names at all levels:
{
title: 'level one',
description: 'level one description',
children: [
{
title: 'level two',
desc: 'level two description'
}
]
}
The problem I'm running into is that if I have an empty string on any of the lower level objects' property, the outermost context's value is fetched. I understand the reasons for walking up the context tree (although I can't find it explained in the documentation!). However, I think an empty string is an explicit statement that "this is empty". Making empty strings truthy would also make template rendering more consistent across platforms.