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 hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274c5a1032718bf06e86c0b3a82c06071d21601d8581d58a6a40bbc976275ab7 |
|
MD5 | 5149cfa0181557d2e430c0f95b20128c |
|
BLAKE2b-256 | 26a3bd70ef37469fe5feda20fab7747400e22a88e300ef5b707c442c76cd8e84 |