From 06c057263b68aa701f0611293649e5d0cd6798ea Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 25 May 2025 09:59:31 +0000 Subject: [PATCH] Deployed 046569e1 to dev with MkDocs 1.6.1 and mike 2.1.3 --- dev/reference/template_tags/index.html | 2 +- dev/release_notes/index.html | 2 +- dev/search/search_index.json | 2 +- versions.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/reference/template_tags/index.html b/dev/reference/template_tags/index.html index 52975b52..094655fa 100644 --- a/dev/reference/template_tags/index.html +++ b/dev/reference/template_tags/index.html @@ -3,7 +3,7 @@

See source code

Marks location where CSS link tags should be rendered after the whole HTML has been generated.

Generally, this should be inserted into the <head> tag of the HTML.

If the generated HTML does NOT contain any {% component_css_dependencies %} tags, CSS links are by default inserted into the <head> tag of the HTML. (See Default JS / CSS locations)

Note that there should be only one {% component_css_dependencies %} for the whole HTML document. If you insert this tag multiple times, ALL CSS links will be duplicately inserted into ALL these places.

component_js_dependencies¤

{% component_js_dependencies  %}
 

See source code

Marks location where JS link tags should be rendered after the whole HTML has been generated.

Generally, this should be inserted at the end of the <body> tag of the HTML.

If the generated HTML does NOT contain any {% component_js_dependencies %} tags, JS scripts are by default inserted at the end of the <body> tag of the HTML. (See Default JS / CSS locations)

Note that there should be only one {% component_js_dependencies %} for the whole HTML document. If you insert this tag multiple times, ALL JS scripts will be duplicately inserted into ALL these places.

component¤

{% component *args: Any, **kwargs: Any [only] %}
 {% endcomponent %}
-

See source code

Renders one of the components that was previously registered with @register() decorator.

The {% component %} tag takes:

{% load component_tags %}
+

See source code

Renders one of the components that was previously registered with @register() decorator.

The {% component %} tag takes:

{% load component_tags %}
 <div>
     {% component "button" name="John" job="Developer" / %}
 </div>
diff --git a/dev/release_notes/index.html b/dev/release_notes/index.html
index bc37d06b..34c69501 100644
--- a/dev/release_notes/index.html
+++ b/dev/release_notes/index.html
@@ -270,7 +270,7 @@
 

Read more on Component caching.

  • New extension hook on_slot_rendered()

    This hook is called when a slot is rendered, and allows you to access and/or modify the rendered result.

    This is used by the "debug highlight" feature.

    To modify the rendered result, return the new value:

    class MyExtension(ComponentExtension):
         def on_slot_rendered(self, ctx: OnSlotRenderedContext) -> Optional[str]:
             return ctx.result + "<!-- Hello, world! -->"
    -

    If you don't want to modify the rendered result, return None.

    See all Extension hooks.

  • Fix¤

    v0.139.1¤

    Fix¤

    Refactor¤

    Fix¤

    v0.139.1¤

    Fix¤

    Refactor¤