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.5.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a677a904a05839061d0d1c9cd0eb335a07e511103626263c5dfe2106e4d3341c |
|
MD5 | f8de3730db5d0f0af3ca1fbf5e047252 |
|
BLAKE2b-256 | 73a386927ba9c358838f4ca5a0287b2c0019e22cdac5c80d899dd157248d7296 |