Add Jinja2 filter |bool : return boolean interpretation of the value

'yes', 'on', '1', 'true', insensitively, and 1 are true,
 everything else is false