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.8.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ca2ac9045583d8ab3567c2ba72b5a3c4e02ebc070c9d8f46a8255530d97d54 |
|
MD5 | 60247a0943096201160a7dcf73076d5e |
|
BLAKE2b-256 | 1f24312fc1cf094e8ecf4222f4c2fb482ecbb8afeeb6537f35b00c1f3bf6aefd |