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:
John MacFarlane 2014-03-05 08:47:20 -08:00
parent 49a80e1652
commit 3126b00f11

View file

@ -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