hmrc / govuk-template   5.22.0-1-g50aed51

Apache License 2.0 GitHub

A simple library wrapping the GDS GOV.UK template

Scala versions: 2.11

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.