dj_angles.replacers.attributes¶
Replace attributes like <div dj-if=”condition”> with Django template tags.
Parses HTML into a tree structure
Groups conditional elements by their parent (siblings)
Chains siblings together (if → elif → else)
Generates output with proper {% if %}/{% endif %} wrapping
Module Contents¶
- class dj_angles.replacers.attributes.ConditionalElement¶
Represents an element with a dj-if/elif/else attribute.
- next_in_chain: ConditionalElement | None = None¶