{ "info": { "author": "James Tiplady", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# django-simpleinliner\n\nA simple Django app for inlining static CSS and JS files in templates. Read CSS, JS or generic files from your static directories and insert them inline into your Django templates, wrapping in appropriate HTML tags if necessary.\n\n## Rationale\n\nProvides a quick and easy way to inline an entire JS or CSS file from staticfiles into a template, wrapping it in appropriate tags. [`django-compressor`](https://github.com/django-compressor/django-compressor) does this but I wanted something more lightweight, and also wanted to try my hand at writing a Django extension. Some inspiration and staticfile-handling code was taken from [`django-inlinecss`](https://github.com/roverdotcom/django-inlinecss/).\n\n## Compatibility\n\nAs I've only recently started migrating my projects to Django 2 / Python 3, the below is only a guide \u2013 however I expect it to be mostly accurate.\n\n| | Django 1.10 | 1.11 | 2.0 | 2.1 | 2.2 |\n|---------------:|:-------------:|:----:|:---:|:---:|:---:|\n| **Python** 2.7 | \u2714 | \u2714 | | | |\n| 3.6 | \u2714 | \u2714 | \u2714 | \u2714 | \u2714 |\n\n## Installation\n\n```\n$ pip install django-simpleinliner\n```\n\nAdd `simpleinliner` to your `INSTALLED_APPS` setting.\n\n## Usage\n\nLoad the app at the top of your template:\n\n```\n{% load simpleinliner %}\n```\n\nCall `inlinecss`, `inlinejs` or `inlinegeneric` where you want to pull in a static file:\n\n```\n{% inlinejs 'path/to/my.js' %}\n\n{% inlinecss 'path/to/my.css' %}\n\n{% inlinegeneric 'path/to/my.svg' %}\n```\n\nThe file will be inserted into the template each time the template is rendered, keeping it up to date.\n\nYou can override the default attributes given to `