{% macro prop_attr(prop) -%}
{% if prop.is_final %}
{{" " ~ prop.steps_to_instantiation ~ "," ~ prop.steps_from_instantiation ~ ", final" |e}} |
{% else %}
{{" " ~ prop.steps_to_instantiation ~ "," ~ prop.steps_from_instantiation |e}} |
{% endif %}
{%- endmacro %}
{% macro constraints(constraints, add_del_str) -%}
{% for constr in constraints %}
{{ " " ~ add_del_str ~ constr.name }} |
{% endfor %}
{%- endmacro %}
{% macro value(prop) -%}}
{{" " ~ prop.get_viz_value_str()|e}} |
{%- endmacro %}
{{ clabject.viz_name_str() }} |
{% if not clabject.viz_props_collapse %}
{% for prop in clabject.__ml_props__.values()%}
{{prop.prop_name}} |
meta_prop_attrs: |
{{prop_attr(prop)}}
{% if prop.constraints %}
prop_constr: |
{{constraints(prop.constraints, "") }}
{% endif %}
{% if prop.prop_value is not none %}
prop_value: |
{{value(prop)}}
{% endif %}
{% if prop.re_init_prop_constr is not none %}
re_init_constr: |
{{constraints(prop.re_init_prop_constr.del_constr, "-")}}
{{constraints(prop.re_init_prop_constr.add_constr, "+")}}
{% endif %}
|
{% endfor %}
{% endif %}