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