code: def set_jinja2_silent_none(config):  # pragma: no cover
      
      config.commit()
      jinja2_env = config.get_jinja2_environment()
      jinja2_env.finalize = _silent_none
docs: if variable is None print '' instead of 'None'