Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Commit

Permalink
Check in null macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarp committed Jun 4, 2015
1 parent 420ce69 commit 1d9344a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/macros/null.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% macro null(value) %}
{% if value is not none or value is not defined %}
{{ value }}
{% else %}
<a class='term' data-term='None'>None</a>
{% endif %}
{% endmacro %}

0 comments on commit 1d9344a

Please sign in to comment.