[Fixed]-Pass Multiple value inside variable of WITH and END WITH in django

1👍

From discussion on the question above, it looks like it’s not in the way you’re using the Django {% with %} tag, but the way that you’re then using the reassigned variable in your HTML tag. Change it from

<a href={% some_url %} class={{ current_value }}>

to

<a href={% some_url %} class="{{ current_value }}">

0👍

Works for me 😃

{% include '../components/template.html' with new_object=object %}

Leave a comment