Skip to content

Commit

Permalink
Fixed scala compile issues for play template (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayache Khettar authored and robinwhittleton committed Nov 14, 2016
1 parent 89ef4f3 commit 30cd2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_tools/compiler/play_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PlayProcessor < TemplateProcessor
# top_of_page has a special purpose: it is required by Play to define the
# parameters to pass when rendering
# https://www.playframework.com/documentation/2.2.x/ScalaTemplates#Template-parameters
top_of_page: '@(title: Option[String], bodyClasses: Option[String], htmlLang: Option[String] = None)(head:Html, bodyStart:Html, bodyEnd:Html, insideHeader:Html, afterHeader:Html, footerTop:Html, footerLinks:Html, headerClass:Html = Html.empty, propositionHeader:Html = Html.empty, homepageUrl:Html = Html.empty, globalHeaderText:Html = Html.empty, cookieMessage:Html = Html.empty, skipLinkMessage:Html, logoLinkTitle:Html, licenceMessage:Html, crownCopyrightMessage:Html)(content:Html)',
top_of_page: '@(title: Option[String], bodyClasses: Option[String], htmlLang: Option[String] = None)(head:Html, bodyStart:Html, bodyEnd:Html, insideHeader:Html, afterHeader:Html, footerTop:Html, footerLinks:Html, headerClass:Html = HtmlFormat.empty, propositionHeader:Html = HtmlFormat.empty, homepageUrl:Option[Html] = None, globalHeaderText:Option[Html] = None, cookieMessage: Option[Html] = None, skipLinkMessage:Option[Html], logoLinkTitle:Option[Html] = None, licenceMessage:Html, crownCopyrightMessage:Option[Html])(content:Html)',
head: '@head',
body_classes: '@bodyClasses.getOrElse("")',
header_class: '@headerClass',
Expand All @@ -26,7 +26,7 @@ class PlayProcessor < TemplateProcessor
footer_support_links: '@footerLinks',
homepage_url: '@homepageUrl.getOrElse("https://www.gov.uk/")',
global_header_text: '@globalHeaderText.getOrElse("GOV.UK")',
cookie_message: '@cookieMessage.getOrElse(\'<p>GOV.UK uses cookies to make the site simpler. <a href="https://www.gov.uk/help/cookies">Find out more about cookies</a></p>\')',
cookie_message: '@cookieMessage.getOrElse("<p>GOV.UK uses cookies to make the site simpler. <a href=\"https://www.gov.uk/help/cookies\">Find out more about cookies</a></p>")',
skip_link_message: '@skipLinkMessage.getOrElse("Skip to main content")',
logo_link_title: '@logoLinkTitle.getOrElse("Go to the GOV.UK homepage")',
licence_message: '@licenceMessage',
Expand Down

0 comments on commit 30cd2ef

Please sign in to comment.