File tree 4 files changed +41
-8
lines changed
4 files changed +41
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ information on functionality and ordering.
40
40
| [ Handlers] ( handlers ) | Developing application logic that responds to web requests. | 4 |
41
41
| [ Middleware] ( middleware ) | Developing custom middleware for your application. | 1 |
42
42
| [ Into Response] ( into_response ) | Implementing the Gotham web framework's ` IntoResponse ` trait. | 1 |
43
- | [ Tera Template ] ( templating/tera ) | An example using Tera template engine | 1 |
43
+ | [ Templating ] ( templating ) | An example using various templating engines. | 1 |
44
44
45
45
^ Gotham web framework examples are under active development.
46
46
Original file line number Diff line number Diff line change
1
+ # Templating Examples
2
+
3
+ A collection of crates that provide examples of working with various
4
+ templating engines from with Gotham.
5
+
6
+ ## Ordering
7
+
8
+ As the engines are external, there's no real order to check these examples out;
9
+ feel free to view examples as they're needed.
10
+
11
+ - [ Tera] ( tera ) - Demonstrates the ` Tera ` templating engine with Gotham.
12
+
13
+ ## Help
14
+
15
+ You can get help for the Gotham web framework at:
16
+
17
+ * [ The Gotham web framework website] ( https://gotham.rs )
18
+ * [ Gotham web framework API documentation] ( https://docs.rs/gotham/ )
19
+ * [ Gitter chatroom] ( https://gitter.im/gotham-rs/gotham )
20
+ * [ Twitter] ( https://twitter.com/gotham_rs )
21
+
22
+ ## License
23
+
24
+ Licensed under your option of:
25
+
26
+ * [ MIT License] ( ../LICENSE-MIT )
27
+ * [ Apache License, Version 2.0] ( ../LICENSE-APACHE )
28
+
29
+ ## Community
30
+
31
+ The following policies guide participation in our project and our community:
32
+
33
+ * [ Code of conduct] ( ../../CONDUCT.md )
34
+ * [ Contributing] ( ../../CONTRIBUTING.md )
Original file line number Diff line number Diff line change 1
1
[package ]
2
- name = " gotham_examples_tera_templates "
2
+ name = " gotham_examples_templating_tera "
3
3
description = " A Tera template engine usage example application for Gotham."
4
4
version = " 0.0.0"
5
5
publish = false
@@ -9,5 +9,5 @@ gotham = { path = "../../../gotham" }
9
9
10
10
hyper = " 0.11"
11
11
mime = " 0.3"
12
- tera = " 0.11.8 "
12
+ tera = " 0.11"
13
13
lazy_static = " 1.0"
Original file line number Diff line number Diff line change 1
- # Tera Template
1
+ # Templating using Tera
2
2
3
3
An example usage of Tera template engine working with Gotham.
4
4
5
5
## Running
6
6
7
- From the ` examples/tera_template ` directory:
7
+ From the ` examples/templating/tera ` directory:
8
8
9
9
```
10
10
Terminal 1:
11
11
$ cargo run
12
- Compiling gotham_examples_tera_templates (file:///.../examples/templating/tera)
12
+ Compiling gotham_examples_templating_tera (file:///.../examples/templating/tera)
13
13
Finished dev [unoptimized + debuginfo] target(s) in 4.26 secs
14
- Running `../hello_world `
14
+ Running `../gotham_examples_templating_tera `
15
15
Listening for requests at http://127.0.0.1:7878
16
16
17
17
Terminal 2:
@@ -45,7 +45,6 @@ $ curl -v http://127.0.0.1:7878/
45
45
</body>
46
46
</html>
47
47
* Connection #0 to host 127.0.0.1 left intact
48
-
49
48
```
50
49
51
50
## License
You can’t perform that action at this time.
0 commit comments