Skip to content

Commit e442d89

Browse files
committed
Formatting
1 parent 9d48c00 commit e442d89

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

_posts/2015-03-17-templates.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Pippo comes (out of the box) with some template engines:
2424

2525
To 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
4242
GET("/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
5757
GET("/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

107107
For more information about how to implement a template engine please see _pippo-freemarker_ and _pippo-jade_ modules.
108-

0 commit comments

Comments
 (0)