angus-c/just

string-template can't return number 0

Opened this issue · 0 comments

If value is 0, return ''. How about fix it to return String(value) || ''

return value || '';

And I find that: keyParts[i] will return ' setting' when templete is {{ setting.count }}, so lead to value[keyParts[i]] is undefined