diff --git a/docs/Attributes.md b/docs/Attributes.md index 2b00de0..3a069c6 100644 --- a/docs/Attributes.md +++ b/docs/Attributes.md @@ -1,3 +1,31 @@ # Attributes -TODO: Add Attributes and descriptions \ No newline at end of file +| 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 | `

Hello

` | +| 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 %}` | \ No newline at end of file