Closed i-sinister closed 13 years ago
As a workaround I wrap boolean values with an object: {{tmpl({value: BoolProp}) "#tmplBoolean2"}} and use {{ if $data.value.... in template
No, you are correct, it should treat 'false' as data, and similarly if you pass 0 as data. OTOH if you call tmpl() with no parameter (undefined), then it should render the template once, with an empty object as data. Passing null should still be treated as passing with no parameter...
Thanks...
When trying to pass boolean value "false" to tmpl current object is passed instead. Example:
Variable a will be "1 : yes"