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:
@@ -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]
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user