# Attributes
| dj-assets | Modify the "href" or "src" attributes of elements with a path prefix and wrap them in a Django static command. |
|----------------|----------------------------------------------------------------------------------------------------------------|
| Syntax | `...` |
| Example Input | `
` |
| Example Output | `
` |
| dj-attr | Dynamically assign attributes using Django template variables. |
|----------------|---------------------------------------------------------------------------------------|
| Syntax | `
Hello
Hello
{% endfor %}` | | dj-for-wrap | Wrap the element within a Django template for loop. | |----------------|-------------------------------------------------------------| | Syntax | `
` |
| dj-style | Modify the style attribute of a element with django variables. |
|----------------|--------------------------------------------------------------------------------------------|
| Syntax | `Hello, world!
Hello, world!
` | | dj-var | Replace the element's content with a Django template variable. | |----------------|----------------------------------------------------------------| | Syntax | `Hello, world!
` | | Example Output | `{{ greeting }}
` |