Skip to content

Commit 8aab35d

Browse files
committed
Formatting
1 parent 00c40a9 commit 8aab35d

File tree

5 files changed

+37
-36
lines changed

5 files changed

+37
-36
lines changed

_posts/2015-04-03-freemarker.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 15:39:09
99

1010
#### Setup
1111

12-
1) Add the pippo-freemarker dependency to your pom.xml:
12+
1) Add the `pippo-freemarker` dependency to your `pom.xml`:
1313

1414
```xml
1515
<dependency>
@@ -21,7 +21,7 @@ date: 2015-04-03 15:39:09
2121

2222
2) Start writing [Freemarker][freemarker] templates in the `templates` folder of your application.
2323

24-
**Note:** The default file extension of a Freemarker template is `.ftl` and it may be ommitted from your templates and your Pippo Java code.
24+
**Note:** The default file extension of a Freemarker template is `.ftl` and it may be omitted from your templates and your Pippo Java code.
2525

2626
#### Integration
2727

@@ -43,7 +43,7 @@ ${i18n("key.name", "arg1", "arg2")}
4343

4444
##### prettytime (relative time)
4545

46-
pippo-freemarker supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
46+
The `pippo-freemarker` module supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
4747

4848
Assuming you are providing a `java.util.Date` instance to prettyTime...
4949

@@ -74,7 +74,7 @@ ${formatTime(now, "dd-MM-yyyy HH:mm")}
7474

7575
##### webjarsAt & publicAt
7676

77-
pippo-freemarker supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` methods.
77+
The `pippo-freemarker` module supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` methods.
7878

7979
```html
8080
<!-- Stylesheets -->
@@ -107,8 +107,8 @@ public class MyApplication extends Application {
107107

108108
##### Error Templates
109109

110-
pippo-freemarker will render special templates for routing problems and exceptions. You may override these templates
111-
within your own application.
110+
The `pippo-freemarker` module will render special templates for routing problems and exceptions.
111+
You may override these templates within your own application (put a file with the same name, to same location, in your application classpath)
112112

113113
- `templates/pippo/404notFound.ftl`
114114
- `templates/pippo/500interalError.ftl`

_posts/2015-04-03-groovy.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 16:35:07
99

1010
#### Setup
1111

12-
1) Add the pippo-groovy dependency to your pom.xml:
12+
1) Add the `pippo-groovy` dependency to your `pom.xml`:
1313

1414
```xml
1515
<dependency>
@@ -20,7 +20,7 @@ date: 2015-04-03 16:35:07
2020
```
2121

2222
2) Start writing [Groovy MarkupTemplateEngine][groovy] templates in the `templates` folder of your application.
23-
**Note:** The default file extension of a Groovy template is `.groovy` and may be ommitted from your Pippo Java code but <u>not</u> your templates.
23+
**Note:** The default file extension of a Groovy template is `.groovy` and may be omitted from your Pippo Java code but <u>not</u> your templates.
2424

2525
#### Integration
2626

@@ -42,7 +42,7 @@ i18n("key.name", "arg1", "arg2")
4242

4343
##### prettytime (relative time)
4444

45-
pippo-groovy supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
45+
Teh `pippo-groovy` module supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
4646

4747
Assuming you are providing a `java.util.Date` instance to prettyTime...
4848

@@ -73,7 +73,7 @@ formatTime(now, "dd-MM-yyyy HH:mm")
7373

7474
##### webjarsAt & publicAt
7575

76-
pippo-groovy supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` methods.
76+
The `pippo-groovy` module supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` methods.
7777

7878
```html
7979
// Stylesheets
@@ -106,7 +106,7 @@ public class MyApplication extends Application {
106106

107107
##### AngularJS
108108

109-
pippo-groovy comes with out-of-the-box support for the following syntax:
109+
The `pippo-groovy` module comes with out-of-the-box support for the following syntax:
110110

111111
```
112112
ng("something | or | other")
@@ -116,8 +116,8 @@ The string passed to '`ng` will produce `{% raw %}{{something | or | other}}{% e
116116

117117
##### Error Templates
118118

119-
pippo-groovy will render special templates for routing problems and exceptions. You may override these templates
120-
within your own application.
119+
The `pippo-groovy` module will render special templates for routing problems and exceptions.
120+
You may override these templates within your own application (put a file with the same name, to same location, in your application classpath)
121121

122122
- `templates/pippo/404notFound.groovy`
123123
- `templates/pippo/500interalError.groovy`

_posts/2015-04-03-jade.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 15:56:02
99

1010
#### Setup
1111

12-
1) Add the pippo-jade dependency to your pom.xml:
12+
1) Add the `pippo-jade` dependency to your `pom.xml`:
1313

1414
```xml
1515
<dependency>
@@ -43,7 +43,7 @@ pippo.i18n("key.name", "arg1", "arg2")
4343

4444
##### prettytime (relative time)
4545

46-
pippo-jade supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
46+
The `pippo-jade` supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
4747

4848
Assuming you are providing a `java.util.Date` instance to prettyTime...
4949

@@ -74,7 +74,7 @@ pippo.formatTime(now, "dd-MM-yyyy HH:mm")
7474

7575
##### webjarsAt & publicAt
7676

77-
pippo-jade supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` methods.
77+
The `pippo-jade` module supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` methods.
7878

7979
```html
8080
// Stylesheets
@@ -98,16 +98,17 @@ public class MyApplication extends Application {
9898
// add routes for static content
9999
addPublicResourceRoute();
100100
addWebjarsResourceRoute();
101-
...
101+
102+
// add other routes
102103
}
103104

104105
}
105106
```
106107

107108
##### Error Templates
108109

109-
pippo-jade will render special templates for routing problems and excepions. You may override these templates
110-
within your own application.
110+
The `pippo-jade` module will render special templates for routing problems and exceptions.
111+
You may override these templates within your own application (put a file with the same name, to same location, in your application classpath)
111112

112113
- `templates/pippo/404notFound.jade`
113114
- `templates/pippo/500interalError.jade`

_posts/2015-04-03-pebble.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 16:35:34
99

1010
#### Setup
1111

12-
1) Add the pippo-pebble dependency to your pom.xml:
12+
1) Add the `pippo-pebble` dependency to your `pom.xml`:
1313

1414
```xml
1515
<dependency>
@@ -20,7 +20,7 @@ date: 2015-04-03 16:35:34
2020
```
2121

2222
2) Start writing [Pebble][pebble] templates in the `templates` folder of your application.
23-
**Note:** The default file extension of a Pebble template is `.peb` and it has to be ommitted from your templates and your Pippo Java code. The default location (=base path) of the template files is `src/main/resources/templates`. If you use template inheritance or partial templates then you have to omit the base path! Currently the default extension of Pebble templates cannot be changed.
23+
**Note:** The default file extension of a Pebble template is `.peb` and it has to be omitted from your templates and your Pippo Java code. The default location (=base path) of the template files is `src/main/resources/templates`. If you use template inheritance or partial templates then you have to omit the base path! Currently the default extension of Pebble templates cannot be changed.
2424

2525
#### Integration
2626

@@ -42,7 +42,7 @@ You can supply arguments to your *MessageFormat* translation resources too.
4242

4343
##### prettytime (relative time)
4444

45-
pippo-pebble supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
45+
The `pippo-pebble` module supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
4646

4747
Assuming you are providing a `java.util.Date` instance to prettyTime...
4848

@@ -75,7 +75,7 @@ You can also automatically format localized dates using standard Java date forma
7575

7676
##### webjarsAt & publicAt
7777

78-
pippo-pebble supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` extensions.
78+
The `pippo-pebble` module supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` extensions.
7979

8080
```html
8181
{% raw %}
@@ -112,7 +112,7 @@ public class MyApplication extends Application {
112112

113113
Pebble and AngularJS both use the double-brace notation.
114114

115-
pippo-pebble comes with out-of-the-box support for the following syntax:
115+
The `pippo-pebble` module comes with out-of-the-box support for the following syntax:
116116

117117
```
118118
{% raw %}
@@ -124,8 +124,8 @@ Anything after the `ng` will be re-injected into the template during the compila
124124

125125
##### Error Templates
126126

127-
pippo-pebble will render special templates for routing problems and excepions. You may override these templates
128-
within your own application.
127+
The `pippo-pebble` module will render special templates for routing problems and exceptions.
128+
You may override these templates within your own application.
129129

130130
- `templates/pippo/404notFound.peb`
131131
- `templates/pippo/500interalError.peb`

_posts/2015-04-03-trimou.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 16:35:19
99

1010
#### Setup
1111

12-
1) Add the pippo-trimou dependency to your pom.xml:
12+
1) Add the `pippo-trimou` dependency to your `pom.xml`:
1313

1414
```xml
1515
<dependency>
@@ -20,7 +20,7 @@ date: 2015-04-03 16:35:19
2020
```
2121

2222
2) Start writing [Mustache][mustache] templates in the `templates` folder of your application. You may want to review the [Trimou docs](http://trimou.org/doc/latest.html) for any non-standard syntax notes.
23-
**Note:** The default file extension of a Trimou template is `.mustache` and it may be ommitted from your templates and your Pippo Java code.
23+
**Note:** The default file extension of a Trimou template is `.mustache` and it may be omitted from your templates and your Pippo Java code.
2424

2525
#### Integration
2626

@@ -46,7 +46,7 @@ You can supply arguments to your *MessageFormat* translation resources too.
4646

4747
##### prettytime (relative time)
4848

49-
pippo-trimou supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
49+
The `pippo-trimou` supports automatically localized [prettytime][prettytime] out-of-the-box and it is very easy to use.
5050

5151
Assuming you are providing a `java.util.Date` instance to prettyTime...
5252

@@ -80,7 +80,7 @@ You can also automatically format localized dates using standard Java date forma
8080

8181
##### webjarsAt & publicAt
8282

83-
pippo-trimou supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` helpers.
83+
The `pippo-trimou` module supports context-aware url generation for your classpath resources using the `webjarsAt` and `publicAt` helpers.
8484

8585
```html
8686
{% raw %}
@@ -101,9 +101,9 @@ pippo-trimou supports context-aware url generation for your classpath resources
101101
```java
102102
public class MyApplication extends Application {
103103

104-
@Override
104+
@Override
105105
protected void onInit() {
106-
// add routes for static content
106+
// add routes for static content
107107
addPublicResourceRoute();
108108
addWebjarsResourceRoute();
109109

@@ -115,9 +115,9 @@ public class MyApplication extends Application {
115115

116116
##### AngularJS
117117

118-
Mustache and AngularJS both use the double-brace notation. There are several options on how to use both technologies together as outlined [here](https://github.com/trimou/trimou/wiki/How-to-render-a-template-with-braces-delimiters).
118+
Mustache and AngularJS both use the double-brace notation. There are several options on how to use both technologies together as outlined [here](https://github.com/trimou/trimou/wiki/How-to-render-a-template-with-braces-delimiters).
119119

120-
pippo-trimou comes with out-of-the-box support for the following syntax:
120+
The `pippo-trimou` module comes with out-of-the-box support for the following syntax:
121121

122122
```
123123
{% raw %}
@@ -129,8 +129,8 @@ Anything after the `ng` will be re-injected into the template during the compila
129129

130130
##### Error Templates
131131

132-
pippo-trimou will render special templates for routing problems and excepions. You may override these templates
133-
within your own application.
132+
The `pippo-trimou` module will render special templates for routing problems and exceptions.
133+
You may override these templates within your own application (put a file with the same name, to same location, in your application classpath)
134134

135135
- `templates/pippo/404notFound.mustache`
136136
- `templates/pippo/500interalError.mustache`

0 commit comments

Comments
 (0)