Crown-Commercial-Service / govuk-frontend-jinja

Tools to use the GOV.UK Design System with Python webapps that use Jinja2 and Flask 🐍
MIT License
9 stars 6 forks source link

Add fix for summary list variable set within loop #52

Closed domoscargin closed 4 years ago

domoscargin commented 4 years ago

govukSummaryList creates the anyRowHasActions variable outside a loop and changes it within a loop.

https://github.com/alphagov/govuk-frontend/blob/844a51e07c643cec84c6425a8cbda568261c78c5/src/govuk/components/summary-list/template.njk#L10-L14

Jinja doesn't support this as is, so this adds namespacing for it.