Closed scmorrison closed 5 years ago
Hi @softmoth,
Context variables with an assigned value of the number 0 render blank:
0
use Template::Mustache; Template::Mustache.render('Zero: "{{ zero }}"', { zero => 0 }).say; # Zero: "" Template::Mustache.render('One: "{{ one }}"', { one => 1 }).say; # One: "1"
The string '0' prints fine.
'0'
Thanks, Sam
Thanks!
Hi @softmoth,
Context variables with an assigned value of the number
0
render blank:The string
'0'
prints fine.Thanks, Sam