You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2015-04-03-pebble.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 16:35:34
9
9
10
10
#### Setup
11
11
12
-
1) Add the pippo-pebble dependency to your pom.xml:
12
+
1) Add the `pippo-pebble` dependency to your `pom.xml`:
13
13
14
14
```xml
15
15
<dependency>
@@ -20,7 +20,7 @@ date: 2015-04-03 16:35:34
20
20
```
21
21
22
22
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.
24
24
25
25
#### Integration
26
26
@@ -42,7 +42,7 @@ You can supply arguments to your *MessageFormat* translation resources too.
42
42
43
43
##### prettytime (relative time)
44
44
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.
46
46
47
47
Assuming you are providing a `java.util.Date` instance to prettyTime...
48
48
@@ -75,7 +75,7 @@ You can also automatically format localized dates using standard Java date forma
75
75
76
76
##### webjarsAt & publicAt
77
77
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.
79
79
80
80
```html
81
81
{% raw %}
@@ -112,7 +112,7 @@ public class MyApplication extends Application {
112
112
113
113
Pebble and AngularJS both use the double-brace notation.
114
114
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:
116
116
117
117
```
118
118
{% raw %}
@@ -124,8 +124,8 @@ Anything after the `ng` will be re-injected into the template during the compila
124
124
125
125
##### Error Templates
126
126
127
-
pippo-pebblewill 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.
Copy file name to clipboardExpand all lines: _posts/2015-04-03-trimou.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ date: 2015-04-03 16:35:19
9
9
10
10
#### Setup
11
11
12
-
1) Add the pippo-trimou dependency to your pom.xml:
12
+
1) Add the `pippo-trimou` dependency to your `pom.xml`:
13
13
14
14
```xml
15
15
<dependency>
@@ -20,7 +20,7 @@ date: 2015-04-03 16:35:19
20
20
```
21
21
22
22
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.
24
24
25
25
#### Integration
26
26
@@ -46,7 +46,7 @@ You can supply arguments to your *MessageFormat* translation resources too.
46
46
47
47
##### prettytime (relative time)
48
48
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.
50
50
51
51
Assuming you are providing a `java.util.Date` instance to prettyTime...
52
52
@@ -80,7 +80,7 @@ You can also automatically format localized dates using standard Java date forma
80
80
81
81
##### webjarsAt & publicAt
82
82
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.
84
84
85
85
```html
86
86
{% raw %}
@@ -101,9 +101,9 @@ pippo-trimou supports context-aware url generation for your classpath resources
101
101
```java
102
102
publicclassMyApplicationextendsApplication {
103
103
104
-
@Override
104
+
@Override
105
105
protectedvoidonInit() {
106
-
// add routes for static content
106
+
// add routes for static content
107
107
addPublicResourceRoute();
108
108
addWebjarsResourceRoute();
109
109
@@ -115,9 +115,9 @@ public class MyApplication extends Application {
115
115
116
116
##### AngularJS
117
117
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).
119
119
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:
121
121
122
122
```
123
123
{% raw %}
@@ -129,8 +129,8 @@ Anything after the `ng` will be re-injected into the template during the compila
129
129
130
130
##### Error Templates
131
131
132
-
pippo-trimouwill 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)
0 commit comments