Skip to content
pramode edited this page Jun 26, 2011 · 10 revisions

Play templates

Simple example

  public class Application extends Controller {

     public static void test() {
       String name = "Arun Kumar";
       render(name);
     } 
   }  

The variable name can be accessed in app/views/Application/test.html as ${name}

Clone this wiki locally