Welcome to the django-staticinline Documentation

https://travis-ci.org/bartTC/django-staticinline.svg?branch=master https://api.codacy.com/project/badge/Coverage/8e64345e99ea49888dc1bd9303c89a35 https://api.codacy.com/project/badge/Grade/8e64345e99ea49888dc1bd9303c89a35

Similiar to Django’s native static templatetag, but this includes the file directly in the template, rather than a link to it.


{% load staticinline %}

<style type="text/css">{% staticinline "myfile.css" %}</style>
<script>{% staticinline "myfile.js" %}</script>


<style type="text/css">body{ color: red; }</style>
<script>alert("Hello World");</script>


This Django app is compatible with Django 1.11 and later, Python 2.7 all versions of Python 3. If you have ideas or have a bug, please open a new issue on Github.