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.4.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d987f5749fdbd468199f50b2a5ed66471f122a0f1ea10f727d2b7b94c9b3a5 |
|
MD5 | 8c938e5958ac6ac72286d5b39e6a08ab |
|
BLAKE2b-256 | 5ef6a86ba62e7445ae261048230e58204181deeec0c06e4f63fc9f9444f8e06f |