@@ -24,7 +24,7 @@ Pippo comes (out of the box) with some template engines:
2424
2525To use one of these template engines just add a dependency in your project:
2626
27- ```
27+ ``` xml
2828<dependency >
2929 <groupId >ro.pippo</groupId >
3030 <artifactId >pippo-freemarker</artifactId >
@@ -40,7 +40,7 @@ Bellow is a code snippet about how you can use a template as response to a reque
4040
4141``` java
4242GET (" /contact/{id}" , routeContext - > {
43- int id = routeContext. getParameter(" id" ). toInt(0 );
43+ int id = routeContext. getParameter(" id" ). toInt(0 );
4444 String action = routeContext. getParameter(" action" ). toString(" new" );
4545
4646 Map<String , Object > model = new HashMap<> ();
@@ -56,7 +56,7 @@ So, maybe the shortest version is:
5656``` java
5757GET (" /contact/{id}" , routeContext - > {
5858 routeContext. setLocal(" id" , routeContext. getParameter(" id" ). toInt(0 ));
59- routeContext. setLocal(" action" , routeContext. getParameter(" action" ). toString(" new" ));
59+ routeContext. setLocal(" action" , routeContext. getParameter(" action" ). toString(" new" ));
6060 routeContext. render(" contact" );
6161});
6262```
@@ -105,4 +105,3 @@ public class CrudApplication extends Application {
105105```
106106
107107For more information about how to implement a template engine please see _ pippo-freemarker_ and _ pippo-jade_ modules.
108-
0 commit comments