alphagov / govuk-prototype-kit

Rapidly create HTML prototypes of GOV.UK services
https://prototype-kit.service.gov.uk
MIT License
302 stars 236 forks source link

Write blocks to layout.html, not govuk_template.html #4

Closed joelanman closed 8 years ago

joelanman commented 10 years ago

with the current set up, views write directly to the content block in govuk_template.html

this means you can't define any common html in layout.html

we don't want people to edit govuk_template, so I think the best thing to do is make layout.html more "responsible" for everything - views should write to layout (which is editable) instead of govuk_template (which is not).

tombye commented 10 years ago

Can you explain with examples of what you mean in relation to the specific problem that caused this issue? It's hard to talk in the abstract about this.