Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created April 21, 2009 08:24
Show Gist options
  • Save timperrett/99026 to your computer and use it in GitHub Desktop.
Save timperrett/99026 to your computer and use it in GitHub Desktop.
val myReWriter: LiftRules.RewritePF = NamedPF("DemoBind") {
case RewriteRequest(ParsePath("user" :: id :: Nil, "", true, false), GetRequest, _) => {
RewriteResponse(ParsePath("path" :: "to" :: "template" :: Nil, "", true, false), Map("id" -> id))
}
}
LiftRules.rewrite.append(myReWriter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment