jinja_svg_catalog.html.edge 710 B

1234567891011121314151617181920212223242526
  1. {{--
  2. This is a EDGE https://edgejs.dev/ template to generate a HTML Jinja template
  3. for the backend. Example output of this EDGE template:
  4. - https://github.com/searxng/searxng/blob/master/searx/templates/simple/icons.html
  5. --}}
  6. {#
  7. Catalog of SVG symbols that can be inserted into the HTML output of a Jinja
  8. template. This file from:
  9. client/simple/tools/icon_catalog.edge.html
  10. #}
  11. {%-
  12. set catalog = {
  13. @each((svg, name) in svg_catalog)
  14. "{{{name}}}" : """{{{svg}}}""",
  15. @end
  16. }
  17. -%}
  18. @each(macro in macros)
  19. {% macro {{ macro.name }}(action, alt) -%}
  20. {{ open_curly_brace }} catalog[action] | replace("{{__jinja_class_placeholder__}}", "{{ macro.class }}") | safe {{ close_curly_brace }}
  21. {%- endmacro %}
  22. @end