mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
Fix links in the book
This commit is contained in:
parent
78878f08b6
commit
5787781b78
@ -8,7 +8,7 @@ In your template definitions, replace `rinja::Template` with
|
|||||||
Enabling the `with-rocket` feature appends an implementation of Rocket's
|
Enabling the `with-rocket` feature appends an implementation of Rocket's
|
||||||
`Responder` trait for each template type. This makes it easy to trivially
|
`Responder` trait for each template type. This makes it easy to trivially
|
||||||
return a value of that type in a Rocket handler. See
|
return a value of that type in a Rocket handler. See
|
||||||
[the example](https://github.com/rinja-rs/rinja/blob/main/rinja_rocket/tests/basic.rs)
|
[the example](https://github.com/rinja-rs/rinja/blob/master/rinja_rocket/tests/basic.rs)
|
||||||
from the Rinja test suite for more on how to integrate.
|
from the Rinja test suite for more on how to integrate.
|
||||||
|
|
||||||
In case a run-time error occurs during templating, a `500 Internal Server
|
In case a run-time error occurs during templating, a `500 Internal Server
|
||||||
@ -23,7 +23,7 @@ In your template definitions, replace `rinja::Template` with
|
|||||||
Enabling the `with-actix-web` feature appends an implementation of Actix-web's
|
Enabling the `with-actix-web` feature appends an implementation of Actix-web's
|
||||||
`Responder` trait for each template type. This makes it easy to trivially return
|
`Responder` trait for each template type. This makes it easy to trivially return
|
||||||
a value of that type in an Actix-web handler. See
|
a value of that type in an Actix-web handler. See
|
||||||
[the example](https://github.com/rinja-rs/rinja/blob/main/rinja_actix/tests/basic.rs)
|
[the example](https://github.com/rinja-rs/rinja/blob/master/rinja_actix/tests/basic.rs)
|
||||||
from the Rinja test suite for more on how to integrate.
|
from the Rinja test suite for more on how to integrate.
|
||||||
|
|
||||||
## Axum integration
|
## Axum integration
|
||||||
@ -34,7 +34,7 @@ In your template definitions, replace `rinja::Template` with
|
|||||||
Enabling the `with-axum` feature appends an implementation of Axum's
|
Enabling the `with-axum` feature appends an implementation of Axum's
|
||||||
`IntoResponse` trait for each template type. This makes it easy to trivially
|
`IntoResponse` trait for each template type. This makes it easy to trivially
|
||||||
return a value of that type in a Axum handler. See
|
return a value of that type in a Axum handler. See
|
||||||
[the example](https://github.com/rinja-rs/rinja/blob/main/rinja_axum/tests/basic.rs)
|
[the example](https://github.com/rinja-rs/rinja/blob/master/rinja_axum/tests/basic.rs)
|
||||||
from the Rinja test suite for more on how to integrate.
|
from the Rinja test suite for more on how to integrate.
|
||||||
|
|
||||||
In case of a run-time error occurring during templating, the response will be of the same
|
In case of a run-time error occurring during templating, the response will be of the same
|
||||||
@ -48,7 +48,7 @@ In your template definitions, replace `rinja::Template` with
|
|||||||
|
|
||||||
Enabling the `with-warp` feature appends an implementation of Warp's `Reply`
|
Enabling the `with-warp` feature appends an implementation of Warp's `Reply`
|
||||||
trait for each template type. This makes it simple to return a template from
|
trait for each template type. This makes it simple to return a template from
|
||||||
a Warp filter. See [the example](https://github.com/rinja-rs/rinja/blob/main/rinja_warp/tests/warp.rs)
|
a Warp filter. See [the example](https://github.com/rinja-rs/rinja/blob/master/rinja_warp/tests/warp.rs)
|
||||||
from the Rinja test suite for more on how to integrate.
|
from the Rinja test suite for more on how to integrate.
|
||||||
|
|
||||||
[rinja_rocket]: https://docs.rs/rinja_rocket
|
[rinja_rocket]: https://docs.rs/rinja_rocket
|
||||||
|
@ -602,7 +602,7 @@ assert_eq!(t.render().unwrap(), "Section 1: A=a\nB=b")
|
|||||||
```
|
```
|
||||||
|
|
||||||
See the example
|
See the example
|
||||||
[render in place](https://github.com/rinja-rs/rinja/blob/main/testing/tests/render_in_place.rs)
|
[render in place](https://github.com/rinja-rs/rinja/blob/master/testing/tests/render_in_place.rs)
|
||||||
using a vector of templates in a for block.
|
using a vector of templates in a for block.
|
||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user