compone 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {compone-0.2.0 → compone-0.2.1}/PKG-INFO +1 -1
- {compone-0.2.0 → compone-0.2.1}/compone/html/component.py +5 -1
- {compone-0.2.0 → compone-0.2.1}/compone/utils.py +4 -1
- {compone-0.2.0 → compone-0.2.1}/pyproject.toml +1 -1
- {compone-0.2.0 → compone-0.2.1}/README.md +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/__init__.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/component.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/escape.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/__init__.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/__init__.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/content_sectioning.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/embedded.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/forms.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/inline_text.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/interactive.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/main.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/metadata.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/multimedia.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/other.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/scripting.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/table.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/text_content.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/elements/web_components.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/html/helpers.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/htmx/__init__.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/htmx/config.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/htmx/constants.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/robots/__init__.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/robots/html_meta.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/robots/robots_txt.py +0 -0
- {compone-0.2.0 → compone-0.2.1}/compone/xml.py +0 -0
|
@@ -47,7 +47,11 @@ class _HTMLComponentBase(_ComponentBase):
|
|
|
47
47
|
raise ValueError("Both single and double quotes in attribute value")
|
|
48
48
|
if keyword.iskeyword(no_underscore := key[:-1]):
|
|
49
49
|
key = no_underscore
|
|
50
|
-
|
|
50
|
+
# This is not using is_iterable, because there can be iterable objects
|
|
51
|
+
# which behave like strings, but not subclasses of str.
|
|
52
|
+
# For example gettext_lazy and reverse_lazy in Django, which are proxy objects
|
|
53
|
+
# We aim for the most common case here
|
|
54
|
+
if isinstance(val, (tuple, list)):
|
|
51
55
|
val = " ".join(str(i) for i in val)
|
|
52
56
|
|
|
53
57
|
html_key = escape(key.replace("_", "-"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|