dp-frontend-renderer

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2017 License: MIT Imports: 23 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
handlers
dd/disabled
Package disabled ...
Package disabled ...
dd/splash
Package splash ...
Package splash ...
errorPage
Package errorPage ...
Package errorPage ...
homepage
Package homepage ...
Package homepage ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL