├── .coveragerc ├── .github ├── workflows │ ├── build.yml │ ├── lint.yml │ ├── pr-comment-django-test-suite.yml │ ├── python.yml │ └── rust.yml └── zizmor.yml ├── .gitignore ├── .pre-commit-config.yaml ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── clippy.toml ├── dtl-lexer ├── Cargo.toml └── src │ ├── autoescape.rs │ ├── common.rs │ ├── core.rs │ ├── custom_tag.rs │ ├── forloop.rs │ ├── ifcondition.rs │ ├── lib.rs │ ├── load.rs │ ├── tag.rs │ ├── types.rs │ └── variable.rs ├── justfile ├── manage.py ├── pyproject.toml ├── python └── django_rusty_templates │ └── __init__.py ├── renovate.json ├── rustfmt.toml ├── scripts ├── django_tests_use_rusty_templates.patch └── run_django_test_suite.py ├── src ├── error.rs ├── filters.rs ├── lib.rs ├── loaders.rs ├── parse.rs ├── render.rs ├── render │ ├── common.rs │ ├── filters.rs │ ├── tags.rs │ └── types.rs ├── template.rs ├── types.rs └── utils.rs ├── tests ├── __init__.py ├── apps.py ├── conftest.py ├── filters │ ├── __init__.py │ ├── test_add.py │ ├── test_addslashes.py │ ├── test_capfirst.py │ ├── test_center.py │ ├── test_default_if_none.py │ ├── test_escape.py │ ├── test_escapejs.py │ ├── test_external.py │ ├── test_lower.py │ ├── test_safe.py │ ├── test_slugify.py │ ├── test_title.py │ ├── test_upper.py │ ├── test_wordcount.py │ ├── test_wordwrap.py │ └── test_yesno.py ├── locale │ └── de │ │ └── LC_MESSAGES │ │ └── django.po ├── settings.py ├── tags │ ├── test_autoescape.py │ ├── test_custom_simple.py │ ├── test_custom_simple_block.py │ ├── test_for.py │ ├── test_if.py │ ├── test_load.py │ └── test_url.py ├── templates │ ├── basic.txt │ ├── full_example.html │ ├── invalid.txt │ ├── parse_error.txt │ └── translation.txt ├── templatetags │ ├── __init__.py │ ├── custom_filters.py │ ├── custom_tags.py │ ├── invalid_tags.py │ ├── more_filters.py │ ├── no_filters.py │ └── no_tags.py ├── test_autoescape.py ├── test_context_processors.py ├── test_django.py ├── test_engine.py ├── test_render.py ├── test_translation.py ├── test_variable.py ├── urls.py ├── utils.py ├── views.py └── zero_division.py └── uv.lock /.coveragerc: -------------------------------------------------------------------------------- 1 | [report] 2 | 3 | skip_covered = True 4 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/pr-comment-django-test-suite.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.github/workflows/pr-comment-django-test-suite.yml -------------------------------------------------------------------------------- /.github/workflows/python.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.github/workflows/python.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.github/zizmor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.github/zizmor.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/README.md -------------------------------------------------------------------------------- /clippy.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/clippy.toml -------------------------------------------------------------------------------- /dtl-lexer/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/Cargo.toml -------------------------------------------------------------------------------- /dtl-lexer/src/autoescape.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/autoescape.rs -------------------------------------------------------------------------------- /dtl-lexer/src/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/common.rs -------------------------------------------------------------------------------- /dtl-lexer/src/core.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/core.rs -------------------------------------------------------------------------------- /dtl-lexer/src/custom_tag.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/custom_tag.rs -------------------------------------------------------------------------------- /dtl-lexer/src/forloop.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/forloop.rs -------------------------------------------------------------------------------- /dtl-lexer/src/ifcondition.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/ifcondition.rs -------------------------------------------------------------------------------- /dtl-lexer/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/lib.rs -------------------------------------------------------------------------------- /dtl-lexer/src/load.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/load.rs -------------------------------------------------------------------------------- /dtl-lexer/src/tag.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/tag.rs -------------------------------------------------------------------------------- /dtl-lexer/src/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/types.rs -------------------------------------------------------------------------------- /dtl-lexer/src/variable.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/dtl-lexer/src/variable.rs -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/justfile -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/pyproject.toml -------------------------------------------------------------------------------- /python/django_rusty_templates/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/python/django_rusty_templates/__init__.py -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/renovate.json -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2024" 2 | -------------------------------------------------------------------------------- /scripts/django_tests_use_rusty_templates.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/scripts/django_tests_use_rusty_templates.patch -------------------------------------------------------------------------------- /scripts/run_django_test_suite.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/scripts/run_django_test_suite.py -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/filters.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/filters.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/loaders.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/loaders.rs -------------------------------------------------------------------------------- /src/parse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/parse.rs -------------------------------------------------------------------------------- /src/render.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/render.rs -------------------------------------------------------------------------------- /src/render/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/render/common.rs -------------------------------------------------------------------------------- /src/render/filters.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/render/filters.rs -------------------------------------------------------------------------------- /src/render/tags.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/render/tags.rs -------------------------------------------------------------------------------- /src/render/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/render/types.rs -------------------------------------------------------------------------------- /src/template.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/template.rs -------------------------------------------------------------------------------- /src/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/types.rs -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/src/utils.rs -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/apps.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/filters/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/filters/test_add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_add.py -------------------------------------------------------------------------------- /tests/filters/test_addslashes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_addslashes.py -------------------------------------------------------------------------------- /tests/filters/test_capfirst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_capfirst.py -------------------------------------------------------------------------------- /tests/filters/test_center.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_center.py -------------------------------------------------------------------------------- /tests/filters/test_default_if_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_default_if_none.py -------------------------------------------------------------------------------- /tests/filters/test_escape.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_escape.py -------------------------------------------------------------------------------- /tests/filters/test_escapejs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_escapejs.py -------------------------------------------------------------------------------- /tests/filters/test_external.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_external.py -------------------------------------------------------------------------------- /tests/filters/test_lower.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_lower.py -------------------------------------------------------------------------------- /tests/filters/test_safe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_safe.py -------------------------------------------------------------------------------- /tests/filters/test_slugify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_slugify.py -------------------------------------------------------------------------------- /tests/filters/test_title.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_title.py -------------------------------------------------------------------------------- /tests/filters/test_upper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_upper.py -------------------------------------------------------------------------------- /tests/filters/test_wordcount.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_wordcount.py -------------------------------------------------------------------------------- /tests/filters/test_wordwrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_wordwrap.py -------------------------------------------------------------------------------- /tests/filters/test_yesno.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/filters/test_yesno.py -------------------------------------------------------------------------------- /tests/locale/de/LC_MESSAGES/django.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/locale/de/LC_MESSAGES/django.po -------------------------------------------------------------------------------- /tests/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/settings.py -------------------------------------------------------------------------------- /tests/tags/test_autoescape.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_autoescape.py -------------------------------------------------------------------------------- /tests/tags/test_custom_simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_custom_simple.py -------------------------------------------------------------------------------- /tests/tags/test_custom_simple_block.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_custom_simple_block.py -------------------------------------------------------------------------------- /tests/tags/test_for.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_for.py -------------------------------------------------------------------------------- /tests/tags/test_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_if.py -------------------------------------------------------------------------------- /tests/tags/test_load.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_load.py -------------------------------------------------------------------------------- /tests/tags/test_url.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/tags/test_url.py -------------------------------------------------------------------------------- /tests/templates/basic.txt: -------------------------------------------------------------------------------- 1 | Hello {{ user }}! 2 | -------------------------------------------------------------------------------- /tests/templates/full_example.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templates/full_example.html -------------------------------------------------------------------------------- /tests/templates/invalid.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templates/invalid.txt -------------------------------------------------------------------------------- /tests/templates/parse_error.txt: -------------------------------------------------------------------------------- 1 | This is an empty variable: {{ }} 2 | -------------------------------------------------------------------------------- /tests/templates/translation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templates/translation.txt -------------------------------------------------------------------------------- /tests/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/templatetags/custom_filters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templatetags/custom_filters.py -------------------------------------------------------------------------------- /tests/templatetags/custom_tags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templatetags/custom_tags.py -------------------------------------------------------------------------------- /tests/templatetags/invalid_tags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templatetags/invalid_tags.py -------------------------------------------------------------------------------- /tests/templatetags/more_filters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templatetags/more_filters.py -------------------------------------------------------------------------------- /tests/templatetags/no_filters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templatetags/no_filters.py -------------------------------------------------------------------------------- /tests/templatetags/no_tags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/templatetags/no_tags.py -------------------------------------------------------------------------------- /tests/test_autoescape.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_autoescape.py -------------------------------------------------------------------------------- /tests/test_context_processors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_context_processors.py -------------------------------------------------------------------------------- /tests/test_django.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_django.py -------------------------------------------------------------------------------- /tests/test_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_engine.py -------------------------------------------------------------------------------- /tests/test_render.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_render.py -------------------------------------------------------------------------------- /tests/test_translation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_translation.py -------------------------------------------------------------------------------- /tests/test_variable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/test_variable.py -------------------------------------------------------------------------------- /tests/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/urls.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/utils.py -------------------------------------------------------------------------------- /tests/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/tests/views.py -------------------------------------------------------------------------------- /tests/zero_division.py: -------------------------------------------------------------------------------- 1 | 1 / 0 2 | -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LilyFirefly/django-rusty-templates/HEAD/uv.lock --------------------------------------------------------------------------------