I'm asking this as a relatively new person to Scala. I've seen examples of how to create 'control constructs' in Scala, but I don't know it well enough to follow the code of Scalatra itself.
Can someone please explain how 'params' is passed to the defined route handlers? I feel like that's a useful technique and I'd like to know how it's done.
Thank you!
Edit: Adding in the sample code from the Scalatra website to illustrate what I'm talking about:
class HelloWorldApp extends ScalatraFilter {
get("/") {
<h1>Hello, {params("name")}</h1>
}
}