{#- Shared UI macros: inline SVG icons and the recursive setting editor. -#} {% macro icon(name, size=16) -%} {%- if name == "github" -%} {%- else -%} {%- endif -%} {%- endmacro %} {% macro add_form(skill_id, container_path, container_type, key_placeholder="New field name") %}
{% endmacro %} {% macro render_node(skill_id, label, value, path, parent_type=none) %} {%- if value is boolean %}{% set ntype = "boolean" %} {%- elif value is number %}{% set ntype = "number" %} {%- elif value is string %}{% set ntype = "textarea" if "\n" in value else "string" %} {%- elif value is mapping %}{% set ntype = "object" %} {%- elif value is sequence %}{% set ntype = "array" %} {%- else %}{% set ntype = "string" %} {%- endif %}