github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/etc/templates/dot.tmpl (about)

     1  digraph schemas {
     2  {% for schema in schemas %}{% if schema.Metadata.type != "metaschema" && schema.Type != "abstract" %}
     3    {{ schema.ID }} [ label = "{ {{ schema.ID }} | {%  for property in schema.Properties %}{{ property.ID }}\l{% endfor %} }", shape = "record"];
     4    {%  for property in schema.Properties %}{% if property.Relation != "" %}
     5    {{ schema.ID }} -> {{ property.Relation }} [ label = "{{ property.ID }}"];
     6    {% endif %}{% endfor %}
     7  {% endif %}{% endfor %}
     8  }