Skip to content

A simple library wrapping the GDS GOV.UK template

License

Notifications You must be signed in to change notification settings

hmrc/govuk-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

govuk-template

Build Status Download

Simple library wrapping the GDS GOV.UK template.

Note that currently we forked the GDS files. This solution is temporary and in future we will import the GDS artifact directly.

Using the template

In order to use the template, you have to add this line to your application routes file

->     /template                       template.Routes

Installing

This library has different releases for Play 2.8, Play 2.9, and Play 3.0.

Add the following to your SBT build (please note the differences from Play 2.9 onwards):

  • Play 2.8: libraryDependencies += "uk.gov.hmrc" %% "govuk-template" % "5.80.0-play-28"
  • Play 2.9: libraryDependencies += "uk.gov.hmrc" %% "govuk-template-play-29" % "6.0.0"
  • Play 3.0: libraryDependencies += "uk.gov.hmrc" %% "govuk-template-play-30" % "7.0.0"

License

This code is open source software licensed under the Apache 2.0 License.