Skip to main content

django-inline-static provides template tags to inline css and javascript files in Django templates.

Project description

Latest Version Coverage Status Documentation Status https://travis-ci.org/moccu/django-inline-static.svg?branch=master

django-inline-static provides template tags to inline css and javascript files in Django templates, also corrects relative urls in css “url()” calls.

Features

  • Template tag to inline any static file inline_staticfile

  • Template tag to inline javascript files inline_javascript

  • Template tag to inline css files inline_style

  • relative to absolute path converter for paths in css files

Requirements

django-inline-static supports Python 3 only and requires at least Django 1.11.

Prepare for development

A Python 3.6 interpreter is required in addition to pipenv.

$ pipenv install --python 3.6 --dev
$ pipenv shell
$ pip install -e .

Now you’re ready to run the tests:

$ pipenv run py.test

Resources

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-inline-static-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

django_inline_static-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file django-inline-static-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-inline-static-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ed7541230cb7adba02d7b7d02e06f3b025ffbe110526338ab4dccffa317cdc7e
MD5 2d407195b61bcbbe39e01d5c7bf55da1
BLAKE2b-256 7cc7f24b15a03d02a0c038c78e806fe3f8013c286a819536da30a2dc98226355

See more details on using hashes here.

File details

Details for the file django_inline_static-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_inline_static-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 caa8a0fbcdd74c118edc259d515126b6591d24809fbb571e86fba26ad456cb3c
MD5 6d7edd9180771fa16af5e4bc0ceda4a3
BLAKE2b-256 69413edb31efeb590109a9495df74a5b66647994262fee67e8f2a4081758f183

See more details on using hashes here.

Supported by

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