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.6.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e6a8ed6b73262e117cf91dfecb14321b513220d05dd92d2515890eef9bbedc |
|
MD5 | c72159a745700d8e93ded9a793ee5489 |
|
BLAKE2b-256 | 73ef05f90877c3238001a54bc50376e21b890e4c8ccca66e0925f846cdd91e10 |