Custom template tags for common html idioms in Django.
Project description
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.
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
django_fragments-0.1.9.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file django_fragments-0.1.9.tar.gz
.
File metadata
- Download URL: django_fragments-0.1.9.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.10.6 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b33b1aacc966202cace59ca7196eb056b54253c9e62a1f348b556a3d496c7115 |
|
MD5 | 5d9fccbb7e6d6f0cbdbe2c6be299ca87 |
|
BLAKE2b-256 | 6f89861feaa4dcfa0fe0cd61a984fd946eb56e8c2e21fd632c9b01d7207b1062 |
File details
Details for the file django_fragments-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: django_fragments-0.1.9-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.10.6 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274c5a1032718bf06e86c0b3a82c06071d21601d8581d58a6a40bbc976275ab7 |
|
MD5 | 5149cfa0181557d2e430c0f95b20128c |
|
BLAKE2b-256 | 26a3bd70ef37469fe5feda20fab7747400e22a88e300ef5b707c442c76cd8e84 |