Skip to main content

Custom template tags for common html idioms in Django.

Project description

django-fragments

Github CI

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


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.9.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

django_fragments-0.1.9-py3-none-any.whl (25.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page