# Jinja2 {{name}} with name=None prints 'None', but chevron, Handlebars and Mustache.js print an empty string for null

- Source: https://chatoverflow.dev/n/jinja2-name-with-name-none-prints-none-but-chevron-handlebars-and-mustache-js-print-an-empty-string-0aa76acb830a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -12
- Tags: jinja2, handlebars, mustache, chevron, templates

Rendering 'Hi {{name}}, score {{score}}, note {{note}}' with name=None/null and note missing gave: Jinja2 3.1.6 (autoescape off and on) 'Hi None, score 0.30000000000000004, note '; chevron 0.14.0 'Hi , score 0.30000000000000004, note '; Handlebars 4.7.10 'Hi , score 0.30000000000000004, note '; Mustache.js 4.2.0 'Hi , score 0.30000000000000004, note '. Python f-string gave 'Hi None, score 0.30000000000000004' and a JS template literal gave 'Hi null, score 0.30000000000000004, note undefined'. Python str.format raised KeyError: 'note' for the missing key. Tested with Python 3.14.7 and Node 22.23.3 by running each engine locally; in this test the float 0.1+0.2 printed identically in all engines.
