Skip to content

Instantly share code, notes, and snippets.

@chirino
Created January 22, 2010 15:20
Show Gist options
  • Save chirino/283831 to your computer and use it in GitHub Desktop.
Save chirino/283831 to your computer and use it in GitHub Desktop.
-- hello.ssp
hello <%= first %> <%= last %>
-- Hello.scala
case class Person(first: String, last: String)
class MyTemplates {
@template("hello.ssp")
def hello(first: String, last: String) : Unit
@template("hello.ssp")
def hello(@import person:Person) : Unit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment