dj_angles.replacers.attributes.values¶
Module Contents¶
- dj_angles.replacers.attributes.values.replace_values(html: str) str¶
Convert dj-value attributes to Django variable output.
The attribute is removed from the opening tag, the element’s inner content is replaced with {{ value }}, and void/self-closing tags are turned into paired tags so the value has a place to render.
- Parameters:
html – The HTML string to process.
- Returns:
HTML with dj-value attributes replaced by Django template variables.