alphagov/slimmer — pull request #76 by edds (2014-07-10 13:33:49+00:00)
Title: Add ability to load partial templates from static

So that we can have shared templates and styles all served from static.

- Add a resolver which will load templates over the network from static,
it only responds to templates which are prefixed with
'govuk_component'
- Add helper class so you can include the shared templates with one
line, this abstracts away the resovler so that the implementation
could be changed in the future
- Add some basic tests to ensure that the templates are requested from a
known location. If this code is refactored in the future we need to
make sure the template location remains the same.