Skip to content

Instantly share code, notes, and snippets.

@dkackman
Last active February 17, 2020 01:39
Show Gist options
  • Save dkackman/5ed5862ecc96bf0c6d68477063a92d2b to your computer and use it in GitHub Desktop.
Save dkackman/5ed5862ecc96bf0c6d68477063a92d2b to your computer and use it in GitHub Desktop.
{% macro show_node(node) %}
{% for key, value in node.__dict__.items() %}
<span>{{key}}: </span>
{% if True %} <-- not sure what to do here
<span>Value: {{value}}</span>
{%else%}
{{ show_node(value) }}
{% endif %}
{% endfor %}
{% endmacro %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment