Rename data-ss-tpl attribute to data-ss-template

Spell out the abbreviation in the template marker attribute too, matching the
complete-words convention applied to the variables.

https://claude.ai/code/session_01XzhXvMvw42CQGc9kmin3GS
This commit is contained in:
Claude
2026-06-08 14:06:30 +00:00
committed by Lukáš Kucharczyk
parent 29b42e0f3d
commit a06e772e42
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -131,11 +131,11 @@ def _label_slot(text: str, *, extra_class: str = "") -> SafeText:
def _template(name: str, node: SafeText) -> SafeText:
"""Wrap a prototype row/pill in an inert ``<template data-ss-tpl=name>`` that
"""Wrap a prototype row/pill in an inert ``<template data-ss-template=name>`` that
the JS clones. Rendering the prototype with the real component keeps the JS
free of any markup or class strings."""
return Component(
tag_name="template", attributes=[("data-ss-tpl", name)], children=[node]
tag_name="template", attributes=[("data-ss-template", name)], children=[node]
)