From 6a3ecc36383dd88e578865bc6ce7222dca5a8b4a Mon Sep 17 00:00:00 2001 From: Juro Oravec Date: Tue, 23 Sep 2025 13:29:23 +0200 Subject: [PATCH] docs: fix example (#1406) --- docs/concepts/fundamentals/html_attributes.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/concepts/fundamentals/html_attributes.md b/docs/concepts/fundamentals/html_attributes.md index 22b111d3..2622956f 100644 --- a/docs/concepts/fundamentals/html_attributes.md +++ b/docs/concepts/fundamentals/html_attributes.md @@ -608,10 +608,9 @@ class MyComp(Component): """ def get_template_data(self, args, kwargs, slots, context): - date = kwargs.pop("date") return { - "date": date, - "attrs": kwargs, + "date": kwargs["date"], + "attrs": kwargs.get("attrs", {}), "class_from_var": "extra-class" }