Created
January 22, 2010 14:42
-
-
Save jstrachan/283796 to your computer and use it in GitHub Desktop.
This file contains 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 characters
class MyTemplates { | |
@template("foo.ssp") | |
def cheese(arg1: Arg1, arg2: Arg2) : Unit | |
} | |
@templateDir("/foo/bar", ext=".ssp") | |
class MyTemplates { | |
// invokes /foo/bar/foo.ssp | |
def foo(arg1: Arg1, arg2: Arg2) : Unit | |
// invokes /foo/bar/bar.ssp | |
def bar(arg1: Arg1, arg2: Arg2) : Unit | |
} | |
object Cheese { | |
// force this to happen on startup | |
val myTemplates = PageContext.resolveTemplates(classOf[MyTemplates]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment