You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execution of gomplate --missing-key zero -f missingkey.tmpl with 4.1.0 generates the following output:
$c: [map[keywords:32 lang:C] map[keywords:25 lang:Go] map[keywords:357 lang:COBOL]]
$d: [map[keywords:32 lang:C] map[keywords:25 lang:Go] map[keywords:357 lang:COBOL]]
Render $c:
C has 32 keywords.
[] does not exist.
good
good
good
Go has 25 keywords.
[] does not exist.
good
good
good
COBOL has 357 keywords.
[] does not exist.
good
good
good
Render $d:
C has 32 keywords.
[<no value>] does not exist.
good
bad
bad
Go has 25 keywords.
[<no value>] does not exist.
good
bad
bad
COBOL has 357 keywords.
[<no value>] does not exist.
good
bad
bad
Is this expected? $c and $d appear to be identical when printed, but the results are not the same when rendered inline with $testTemplate. For my application, the behaviour with $c is desired for both.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With
missingkey.tmpl
:Execution of
gomplate --missing-key zero -f missingkey.tmpl
with 4.1.0 generates the following output:Is this expected? $c and $d appear to be identical when printed, but the results are not the same when rendered inline with $testTemplate. For my application, the behaviour with $c is desired for both.
Beta Was this translation helpful? Give feedback.
All reactions