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

Project details


Release history Release notifications

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_inline_static-0.0.1-py3-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel 3.6
django-inline-static-0.0.1.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page