Skip to content

Commit 6687424

Browse files
committed
Add README and LICENSE
1 parent 983c46f commit 6687424

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

LICENSE

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) Lily Foote and other contributors.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of Django nor the names of its contributors may be used
15+
to endorse or promote products derived from this software without
16+
specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Django Rusty Templates
2+
3+
Django Rusty Templates is an experimental reimplementation of Django's templating language in Rust.
4+
5+
## Goals
6+
7+
* 100% compatibility of rendered output.
8+
* Error reporting that is at least as useful as Django's errors.
9+
* Improved performance over Django's pure Python implementation.
10+
11+
## Installation
12+
13+
Django Rusty Templates is not yet ready for full release, so it is not available on PyPI yet. Instead it can be installed from github or from a local clone:
14+
15+
```sh
16+
$ pip install git+https://github.com/LilyFoote/django-rusty-templates.git
17+
```
18+
19+
```sh
20+
21+
$ git clone git@github.com:LilyFoote/django-rusty-templates.git
22+
$ pip install ./django-rusty-templates
23+
```
24+
25+
You will need a rust compiler installed (https://rustup.rs/).
26+
27+
## Usage
28+
29+
Add an entry to your [`TEMPLATES` setting](https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-TEMPLATES) with `"BACKEND"` set to `"django_rusty_templates.RustyTemplates"`:
30+
31+
```python
32+
TEMPLATES = [
33+
{
34+
"BACKEND": "django_rusty_templates.RustyTemplates",
35+
... # Other configuration options
36+
},
37+
]
38+
```
39+
40+
## Contributing
41+
42+
Django Rusty Templates is open to contributions. These can come in many forms:
43+
44+
* Implementing missing features, such as filters and tags built into Django.
45+
* Reporting bugs where Django Rusty Templates gives the wrong result.
46+
* Adding new test cases to ensure Django Rusty Templates behaves the same as Django.
47+
* Adding benchmarks to track performance.
48+
* Refactoring for readability or performance.

0 commit comments

Comments
 (0)