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.7.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b581ee807f230defb10953600c717c5f4f01e36995843a26efce1b0fde75ec4c |
|
MD5 | a1a54cbf46cf642b5a9a0defcf95d1de |
|
BLAKE2b-256 | f9e6faa099d0e45be38e8a9f2b2297a28ef28486b0532dd315ae8f598204fb03 |