alphagov/slimmer — pull request #10 by alext (2012-08-23 14:30:44+00:00)
Title: Pass artefact by HTTP header

This is a refactoring of how slimmer gets hold of artefact data. Previously, it inferred the slug from the requested URL, and called out to panopticon for the data.

This change involves the app setting a custom http header containing a JSON representation of the artefact (There is a helper method in slimmer to do this). This artefact data can then be used by the various processing modules in Slimmer.

This is intended to be released as version 2.0.0 as it has some backwards-incompatible changes:

* Artefact has to be explicitly passed to slimmer.
* SectionInserter uses passed artefact, and no longer looks at special meta tags.
* RelatedItemsInserter uses passed artefact instead of calling out to panopticon.
* Slimmer now strips all X-Slimmer-* HTTP headers from the final response.

Other changes:

* new LogoClassInserter module - adds classes to the wrapper element to control the appearence of the directgov and businesslink logos
* Rounded Corners!!! (it is 2.0 after all)