Guest User

Untitled

a guest
Oct 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. def signupMailBody(user: User, validationLink: String): Elem = {
  2. val templatePath = List("user", "signupmailbody")
  3. val template = Templates.findRawTemplate(templatePath, S.locale)
  4.  
  5. template.map(t => {
  6. val out = ("#dear" #> user.shortName &
  7. "#validationLink [href]" #> validationLink)(t)
  8. out.head.asInstanceOf[Elem]
  9. }).openOr {
  10. val msg = "template: " + templatePath + " not found"
  11. error(msg)
  12. throw new Exception(msg)
  13. }
  14. }
Add Comment
Please, Sign In to add comment