Skip to content

Commit 2d80cc3

Browse files
Rename everything to rinja
1 parent 6faab55 commit 2d80cc3

File tree

172 files changed

+533
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+533
-580
lines changed

.github/FUNDING.yml

-2
This file was deleted.

.github/workflows/cifuzz.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CIFuzz
22
on:
33
pull_request:
44
paths:
5-
- 'askama_parser/**'
5+
- 'rinja_parser/**'
66
jobs:
77
Fuzzing:
88
runs-on: ubuntu-latest
@@ -11,12 +11,12 @@ jobs:
1111
id: build
1212
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
1313
with:
14-
oss-fuzz-project-name: 'askama'
14+
oss-fuzz-project-name: 'rinja'
1515
language: rust
1616
- name: Run Fuzzers
1717
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
1818
with:
19-
oss-fuzz-project-name: 'askama'
19+
oss-fuzz-project-name: 'rinja'
2020
language: rust
2121
fuzz-seconds: 180
2222
- name: Upload Crash

.github/workflows/rust.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
strategy:
3333
matrix:
3434
package: [
35-
askama, askama_actix, askama_axum, askama_derive, askama_escape,
36-
askama_parser, askama_rocket, askama_warp, testing,
35+
rinja, rinja_actix, rinja_axum, rinja_derive, rinja_escape,
36+
rinja_parser, rinja_rocket, rinja_warp, testing,
3737
]
3838
runs-on: ubuntu-latest
3939
steps:
@@ -60,7 +60,7 @@ jobs:
6060
- uses: dtolnay/rust-toolchain@master
6161
with:
6262
toolchain: "1.65.0"
63-
- run: cargo check --lib -p askama --all-features
63+
- run: cargo check --lib -p rinja --all-features
6464

6565
Audit:
6666
runs-on: ubuntu-22.04

Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
[workspace]
22
members = [
3-
"askama",
4-
"askama_actix",
5-
"askama_axum",
6-
"askama_derive",
7-
"askama_escape",
8-
"askama_parser",
9-
"askama_rocket",
10-
"askama_warp",
3+
"rinja",
4+
"rinja_actix",
5+
"rinja_axum",
6+
"rinja_derive",
7+
"rinja_escape",
8+
"rinja_parser",
9+
"rinja_rocket",
10+
"rinja_warp",
1111
"testing",
1212
]
1313
resolver = "2"
1414

1515
default-members = [
16-
"askama",
17-
"askama_derive",
18-
"askama_escape",
19-
"askama_parser",
16+
"rinja",
17+
"rinja_derive",
18+
"rinja_escape",
19+
"rinja_parser",
2020
"testing",
2121
]

README.md

+10-33
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,22 @@
1-
# Askama
1+
# rinja
22

3-
[![Documentation](https://docs.rs/askama/badge.svg)](https://docs.rs/askama/)
4-
[![Latest version](https://img.shields.io/crates/v/askama.svg)](https://crates.io/crates/askama)
5-
[![Build Status](https://github.com/djc/askama/workflows/CI/badge.svg)](https://github.com/djc/askama/actions?query=workflow%3ACI)
6-
[![Chat](https://img.shields.io/discord/976380008299917365?logo=discord)](https://discord.gg/ZucwjE6bmT)
7-
8-
Askama implements a template rendering engine based on [Jinja](https://jinja.palletsprojects.com/).
3+
`rinja` is based on [Rinja](https://crates.io/crates/rinja). It implements a template rendering engine based on [Jinja](https://jinja.palletsprojects.com/).
94
It generates Rust code from your templates at compile time
105
based on a user-defined `struct` to hold the template's context.
11-
See below for an example, or read [the book][docs].
12-
13-
**"Pretty exciting. I would love to use this already."** --
14-
[Armin Ronacher][mitsuhiko], creator of Jinja
6+
See below for an example.
157

168
All feedback welcome. Feel free to file bugs, requests for documentation and
17-
any other feedback to the [issue tracker][issues] or [tweet me][twitter].
18-
19-
Askama was created by and is maintained by Dirkjan Ochtman. If you are in a
20-
position to support ongoing maintenance and further development or use it
21-
in a for-profit context, please consider supporting my open source work on
22-
[Patreon][patreon].
9+
any other feedback to the [issue tracker][issues].
2310

2411
### Feature highlights
2512

2613
* Construct templates using a familiar, easy-to-use syntax
2714
* Benefit from the safety provided by Rust's type system
28-
* Template code is compiled into your crate for [optimal performance][benchmarks]
15+
* Template code is compiled into your crate for optimal performance
2916
* Optional built-in support for Actix, Axum, Rocket, and warp web frameworks
3017
* Debugging features to assist you in template development
3118
* Templates must be valid UTF-8 and produce UTF-8 when rendered
32-
* IDE support available in [JetBrains products](https://plugins.jetbrains.com/plugin/16591-askama-template-support)
19+
* IDE support available in [JetBrains products](https://plugins.jetbrains.com/plugin/16591-rinja-template-support)
3320
* Works on stable Rust
3421

3522
### Supported in templates
@@ -43,22 +30,16 @@ in a for-profit context, please consider supporting my open source work on
4330
* Opt-out HTML escaping
4431
* Syntax customization
4532

46-
[docs]: https://djc.github.io/askama/
47-
[fafhrd91]: https://github.com/fafhrd91
48-
[mitsuhiko]: http://lucumr.pocoo.org/
49-
[issues]: https://github.com/djc/askama/issues
50-
[twitter]: https://twitter.com/djco/
51-
[patreon]: https://www.patreon.com/dochtman
52-
[benchmarks]: https://github.com/djc/template-benchmarks-rs
33+
[issues]: https://github.com/rinja-rs/rinja/issues
5334

5435

5536
How to get started
5637
------------------
5738

58-
First, add the Askama dependency to your crate's `Cargo.toml`:
39+
First, add the rinja dependency to your crate's `Cargo.toml`:
5940

6041
```sh
61-
cargo add askama
42+
cargo add rinja
6243
```
6344

6445
Now create a directory called `templates` in your crate root.
@@ -71,7 +52,7 @@ Hello, {{ name }}!
7152
In any Rust file inside your crate, add the following:
7253

7354
```rust
74-
use askama::Template; // bring trait in scope
55+
use rinja::Template; // bring trait in scope
7556

7657
#[derive(Template)] // this will generate the code...
7758
#[template(path = "hello.html")] // using the template in this path, relative
@@ -88,7 +69,3 @@ fn main() {
8869
```
8970

9071
You should now be able to compile and run this code.
91-
92-
Review the [test cases] for more examples.
93-
94-
[test cases]: https://github.com/djc/askama/tree/main/testing

askama_actix/Cargo.toml

-31
This file was deleted.

askama_actix/README.md

-9
This file was deleted.

askama_axum/Cargo.toml

-33
This file was deleted.

askama_axum/README.md

-9
This file was deleted.

askama_derive/README.md

-9
This file was deleted.

askama_escape/README.md

-9
This file was deleted.

askama_parser/README.md

-9
This file was deleted.

askama_rocket/Cargo.toml

-29
This file was deleted.

askama_rocket/README.md

-9
This file was deleted.

askama_warp/Cargo.toml

-29
This file was deleted.

askama_warp/README.md

-9
This file was deleted.

book/book.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[book]
2-
authors = ["djc", "cetra3"]
2+
authors = ["rinja-rs", "cetra3"]
33
language = "en"
44
multilingual = false
55
src = "src"
6-
title = "Askama"
6+
title = "Rinja"

book/src/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Summary
22

3-
- [Askama](./askama.md)
3+
- [Rinja](./rinja.md)
44
- [Getting started](./getting_started.md)
55
- [Creating templates](./creating_templates.md)
66
- [Debugging](./debugging.md)

0 commit comments

Comments
 (0)