stephrdev / django-inline-static

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-inline-static

Latest Version CI Status Coverage Status Documentation Status

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 interpreter is required in addition to poetry.

$ poetry install

Now you're ready to run the tests:

$ make tests

About

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

License:MIT License


Languages

Language:Python 91.5%Language:Makefile 7.0%Language:CSS 1.3%Language:JavaScript 0.2%