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.3.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0625d0ee4f9bc115dc3107947d30f45b3825cd242eed61e5d823cc32843eba2b |
|
MD5 | c5092a0ca5bbca7123c6e91441c46007 |
|
BLAKE2b-256 | 95543178dfa0dd9273d5e766abdfa322592c65e059b0dfca6184f495c2eaef69 |