diff options
author | jake <me@jakechampion.name> | 2020-10-26 22:07:38 +0000 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-10-26 23:18:10 +0100 |
commit | 9301603ee00d9664a13c1ff4662a72150229dd0b (patch) | |
tree | a4bb525ef6f511e729555aaca8df4966280eb42c /book/src | |
parent | d740f8383b313f4595375468b1ccde72d9d9ac55 (diff) | |
download | askama-9301603ee00d9664a13c1ff4662a72150229dd0b.tar.gz askama-9301603ee00d9664a13c1ff4662a72150229dd0b.tar.bz2 askama-9301603ee00d9664a13c1ff4662a72150229dd0b.zip |
Fix links and actions which were broken since the default branch was renamed from master to main
Diffstat (limited to 'book/src')
-rw-r--r-- | book/src/integrations.md | 12 | ||||
-rw-r--r-- | book/src/template_syntax.md | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/book/src/integrations.md b/book/src/integrations.md index 2d016c7..f717fe0 100644 --- a/book/src/integrations.md +++ b/book/src/integrations.md @@ -5,7 +5,7 @@ Enabling the `with-rocket` feature appends an implementation of Rocket's `Responder` trait for each template type. This makes it easy to trivially return a value of that type in a Rocket handler. See -[the example](https://github.com/djc/askama/blob/master/askama_rocket/tests/basic.rs) +[the example](https://github.com/djc/askama/blob/main/askama_rocket/tests/basic.rs) from the Askama test suite for more on how to integrate. In case a run-time error occurs during templating, a `500 Internal Server @@ -17,7 +17,7 @@ handled by your error catcher. Enabling the `with-iron` feature appends an implementation of Iron's `Modifier<Response>` trait for each template type. This makes it easy to trivially return a value of that type in an Iron handler. See -[the example](https://github.com/djc/askama/blob/master/askama_iron/tests/basic.rs) +[the example](https://github.com/djc/askama/blob/main/askama_iron/tests/basic.rs) from the Askama test suite for more on how to integrate. Note that Askama's generated `Modifier<Response>` implementation currently @@ -29,7 +29,7 @@ suggestion, please [file an issue](https://github.com/djc/askama/issues/new). 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 a value of that type in an Actix-web handler. See -[the example](https://github.com/djc/askama/blob/master/askama_actix/tests/basic.rs) +[the example](https://github.com/djc/askama/blob/main/askama_actix/tests/basic.rs) from the Askama test suite for more on how to integrate. ## Gotham integration @@ -37,7 +37,7 @@ from the Askama test suite for more on how to integrate. Enabling the `with-gotham` feature appends an implementation of Gotham's `IntoResponse` trait for each template type. This makes it easy to trivially return a value of that type in a Gotham handler. See -[the example](https://github.com/djc/askama/blob/master/askama_gotham/tests/basic.rs) +[the example](https://github.com/djc/askama/blob/main/askama_gotham/tests/basic.rs) from the Askama 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 @@ -48,7 +48,7 @@ This preserves the response chain if any custom error handling needs to occur. 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 -a Warp filter. See [the example](https://github.com/djc/askama/blob/master/askama_warp/tests/warp.rs) +a Warp filter. See [the example](https://github.com/djc/askama/blob/main/askama_warp/tests/warp.rs) from the Askama test suite for more on how to integrate. ## Tide integration @@ -57,5 +57,5 @@ Enabling the `with-tide` feature appends `Into<tide::Response>` and `TryInto<tide::Body>` implementations for each template type. This provides the ability for tide apps to build a response directly from a template, or to append a templated body to an existing -`Response`. See [the example](https://github.com/djc/askama/blob/master/askama_tide/tests/tide.rs) +`Response`. See [the example](https://github.com/djc/askama/blob/main/askama_tide/tests/tide.rs) from the Askama test suite for more on how to integrate. diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md index 6419140..3f89213 100644 --- a/book/src/template_syntax.md +++ b/book/src/template_syntax.md @@ -321,7 +321,7 @@ assert_eq!(t.render().unwrap(), "Section 1: A=a\nB=b") ``` See the example -[render in place](https://github.com/djc/askama/blob/master/testing/tests/render_in_place.rs) +[render in place](https://github.com/djc/askama/blob/main/testing/tests/render_in_place.rs) using a vector of templates in a for block. ## Comments |