django-fragments
Purpose
Used for partial template rendering of: <input>, <svg> tags. Originally for a Django boilerplate, refactored out into an independent library.
Setup
After installation, e.g. pip install django-fragments
INSTALLED_APPS = [
"django_fragments", # add this
]
...
FRAGMENTS = {
"icons_prefix": "heroicons", # prefix to use for icons
"icons_path": BASE_DIR / "templates" / "xxx" # type: Path, location where svg icons will be stored
}
See documentation.
Release files for django-fragments 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_fragments-0.1.9.tar.gz | 17.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_fragments-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.1 kB
Release files / django_fragments-0.1.9.tar.gz
| Download URL | django_fragments-0.1.9.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b33b1aacc966202cace59ca7196eb056b54253c9e62a1f348b556a3d496c7115
|
|
BLAKE2b-256 checksum How to use checksums |
6f89861feaa4dcfa0fe0cd61a984fd946eb56e8c2e21fd632c9b01d7207b1062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.10.6 Darwin/22.5.0
|
Release files / django_fragments-0.1.9-py3-none-any.whl
| Download URL | django_fragments-0.1.9-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
274c5a1032718bf06e86c0b3a82c06071d21601d8581d58a6a40bbc976275ab7
|
|
BLAKE2b-256 checksum How to use checksums |
26a3bd70ef37469fe5feda20fab7747400e22a88e300ef5b707c442c76cd8e84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.10.6 Darwin/22.5.0
|