how to dynamically load a scala template

I Wonder if there is any anyway of loading a template dynamically using playframework2 and scala using reflection. In play 1.x i used to do something like following:

   public static void template(String templateName) {
    renderTemplate("templateName");
}   

Is there anyway i can achieve the same thing using play2.x?

Java example/solution would be appreciated

Answer:1

I have design requirement to be able to save an IPv6 address in a decimal format. In java I have BigInteger that can hold 40 digit number and Oracle takes it via JDBC driver just fine. How can do ...

I want to check if a string: String s = "a=182 b=41 c=72", contains only: a b c, with their respective values, but they can occur in random order. How do I go about doing this? I have tried doing the ...

I have 2 tiles, for example. Here is the matrix: 0,0,0,0,2 0,0,0,0,0 1,0,0,0,0 How I can automatically make a line from 1 one to point 2? Final result will be something like that: 0,0,0,1,2 0,1,1,...

We're downloading a file from FTP server. Content of the file changes sometimes. File name is always the same. Is this scenario possible? File content is "aaaaaaaaaaaaa" We start downloading File is ...