diff --git a/templates/macros/null.html b/templates/macros/null.html new file mode 100644 index 000000000..a9d840eb8 --- /dev/null +++ b/templates/macros/null.html @@ -0,0 +1,7 @@ +{% macro null(value) %} + {% if value is not none or value is not defined %} + {{ value }} + {% else %} + None + {% endif %} +{% endmacro %}