No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
assets
ci
config
handlers
render
vendor
.gitignore
Dockerfile
Dockerfile.concourse
LICENSE.md
Makefile
README.md
data.json
dp-frontend-renderer.nomad
main.go

README.md

dp-frontend-renderer

Adding new page types

  1. Create the page model in https://github.com/ONSdigital/dp-frontend-models
  • you'll need to update the vendored copy - govendor update github.com/ONSdigital/dp-frontend-models
  1. Create a new handler - use handlers/homepage/handler.go as an example
  • render.Handler will take care of setting global variables, e.g. language
  • the func() passed in should be used for any page-specific customisations
  1. Create a route in main.go

Licence

Copyright ©‎ 2016, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.