Custom template tags for common html idioms in Django.
Project description
django-fragments
Purpose
Used for partial template rendering of: <input>
, <svg>
tags for a Django boilerplate
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.0.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for django_fragments-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a8a615ca707d125d90ed9d00a2bd4be630b5b0678e182b91b91d35cf33ba335 |
|
MD5 | 4d63ee2c0c81547a9ca4368d97ee5206 |
|
BLAKE2b-256 | fe120eb656269a68de3f18972dff342fb7077cc362277588e0434037cba6b5c4 |