Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created June 20, 2014 14:12
Show Gist options
  • Select an option

  • Save Riduidel/916feaa9d908494dab35 to your computer and use it in GitHub Desktop.

Select an option

Save Riduidel/916feaa9d908494dab35 to your computer and use it in GitHub Desktop.
La route vers la liste des todo
/**
* Ici todo est le nom du fichier du template, sans l'extension thl.html
*/
@View("todo")
Template todoList;
/**
* Et donc quand on va aller sur http://localhost:9000/list, ça va afficher le template #todoList qui n'existe pas encore ... d'où une erreur.
* @return
*/
@Route(method = HttpMethod.GET, uri = "/list")
public Result todoList() {
return ok(render(todoList));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment