Templates: YAML objects resolve to "true" in conditionals.
Closes #1133. Note: If address is a YAML object and you just have $address$ in your template, the word "true" will appear, which may be unexpected. (Previously nothing would appear.)
This commit is contained in:
parent
49a80e1652
commit
3126b00f11
1 changed files with 1 additions and 0 deletions
|
@ -190,6 +190,7 @@ resolveVar var' val =
|
|||
Just (String t) -> T.stripEnd t
|
||||
Just (Number n) -> T.pack $ show n
|
||||
Just (Bool True) -> "true"
|
||||
Just (Object _) -> "true"
|
||||
Just _ -> mempty
|
||||
Nothing -> mempty
|
||||
|
||||
|
|
Loading…
Reference in a new issue