# Attributes
| dj-attr | Used to dynamically assign attributes using Django template variables. |
|----------------|---------------------------------------------------------------------------------------|
| Syntax | `` |
| Example Input | `
` |
| Example Output | `` |
| dj-block | Used to replace the element with Django block tags. |
|----------------|-----------------------------------------------------|
| Syntax | `Content` |
| Example Input | `Content
` |
| Example Output | `{% block content %}Content{% endblock %}` |
| dj-command | Used to replace the element with a Django template command. |
|----------------|-------------------------------------------------------------|
| Syntax | `` |
| Example Input | `` |
| Example Output | `{% url 'index' %}` |
| dj-for | Used to replace the element with a Django template for loop. |
|----------------|--------------------------------------------------------------|
| Syntax | `Content` |
| Example Input | `` |
| Example Output | `{% for item in list %}Hello
{% endfor %}` |
| dj-for-wrap | Used to wrap the element within a Django template for loop. |
|----------------|-------------------------------------------------------------|
| Syntax | `Content` |
| Example Input | `Content
` |
| Example Output | `{% for item in list %}Content
{% endfor %}` |