Created
June 13, 2012 09:02
-
-
Save dph01/2922933 to your computer and use it in GitHub Desktop.
Revisions
-
dph01 revised this gist
Jun 13, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ val template = Templates.findRawTemplate(templatePath, S.locale) template.map(t => { val out = ("#dear" #> user.shortName & "#validationLink [href]" #> validationLink)(t) out.head.asInstanceOf[Elem] }).openOr { -
dph01 revised this gist
Jun 13, 2012 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,7 @@ val template = Templates.findRawTemplate(templatePath, S.locale) template.map(t => { val out = "#dear" #> user.shortName & "#validationLink [href]" #> validationLink)(t) out.head.asInstanceOf[Elem] }).openOr { -
dph01 created this gist
Jun 13, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ def signupMailBody(user: User, validationLink: String): Elem = { val templatePath = List("user", "signupmailbody") val template = Templates.findRawTemplate(templatePath, S.locale) template.map(t => { // note - needed to put 'dear' in here rather than in the template file as // the test was failing, the space after the 'dear' was getting lost somehow val out = ("#dear" #> ("Dear " + user.shortName) & "#validationLink [href]" #> validationLink)(t) out.head.asInstanceOf[Elem] }).openOr { val msg = "template: " + templatePath + " not found" error(msg) throw new Exception(msg) } }