This django library allows you to add React components into your django templates.
Project description
Django-React-Templatetags
This django library allows you to add React (16+) components into your django templates.
Features
- Include react components using django templatetags
- Unlimited amount of components in one view
- Support custom models (that is from the beginning not json-serializable)
- Server side rendering with Hypernova or Hastur
Installation
Install the library with pip:
$ pip install django_react_templatetags
Where to go from here?
You should first read Getting started, then go through these topics:
- Settings
- How to use the templatetags included in this library
- Adding a single component
- Adding multiple components
- Examples
- Working with models
- Server side rendering
- FAQ
Tests
This library include tests, just run python runtests.py
You can also run separate test cases: python runtests.py tests.test_filters.ReactIncludeComponentTest
Coverage
Make sure you have Coverage.py installed, then run coverage run runtests.py
to measure coverage. We are currently at 95%.
Contributing
Want to contribute? Awesome. Just send a pull request.
Security
If you believe you have found a security issue with any of our projects please email us at security@frojd.se.
License
Django-React-Templatetags is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_react_templatetags-7.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9cddf821d85cf8c72c7ca35f071582a50de3fb1f7fb55f7b7b070736b4d864 |
|
MD5 | d49297eee28181edce9d97dee9ed3d2d |
|
BLAKE2b-256 | bee3ab3ca0c1dc80c6064eb41b3736cb8d8dc823e043ba273385fb97c870130c |
Hashes for django_react_templatetags-7.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e8a44689bec7468d056a9c0469f7d62b9d78cedeb4dd6b9157548cdfc1e9e42 |
|
MD5 | 0ba8c4fcb8fffe10ac0501a9b3923105 |
|
BLAKE2b-256 | 681a0ec0f2d41fbaae860ff0470be52f380bd92a3388942c965fec011cf5f2b8 |