{"id":16843355,"url":"https://github.com/barttc/django-staticinline","last_synced_at":"2025-03-22T05:31:15.891Z","repository":{"id":32097404,"uuid":"131502416","full_name":"bartTC/django-staticinline","owner":"bartTC","description":"Django template tag to load static files inline with your template.","archived":false,"fork":false,"pushed_at":"2024-11-19T08:36:16.000Z","size":240,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T08:48:12.632Z","etag":null,"topics":["django","performance","staticfiles"],"latest_commit_sha":null,"homepage":"https://django-staticinline.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bartTC.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-29T14:41:03.000Z","updated_at":"2025-02-19T18:43:22.000Z","dependencies_parsed_at":"2024-08-11T11:30:37.970Z","dependency_job_id":"99673268-d0ae-4af4-8f1e-8bc4bbbe75ce","html_url":"https://github.com/bartTC/django-staticinline","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":"0.15384615384615385","last_synced_commit":"43173f0de0cf627ac988514ccc85de7b6df1940c"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-staticinline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-staticinline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-staticinline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-staticinline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartTC","download_url":"https://codeload.github.com/bartTC/django-staticinline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","performance","staticfiles"],"created_at":"2024-10-13T12:50:38.200Z","updated_at":"2025-03-22T05:31:15.886Z","avatar_url":"https://github.com/bartTC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://badge.fury.io/py/django-staticinline.svg)](https://badge.fury.io/py/django-staticinline)\n[![](https://github.com/bartTC/django-staticinline/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/bartTC/django-staticinline/actions)\n\n-----\n\n📖 Full documentation: https://barttc.github.io/django-staticinline/\u003cbr/\u003e\n🐱 GitHub Repository: https://github.com/bartTC/django-staticinline\n\n\n# django-staticinline\n\nWorks similar to Django's `static` template tag, but this one includes\nthe file directly in the template, rather than a link to it.\n\nYou can additionally post-process the file content using custom 'encoder'.\n\n## Compatibility Matrix:\n\n| Py/Dj     | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 |\n|-----------|-----|------|------|------|------|\n| 4.2 (LTS) | —   | ✓    | ✓    | ✓    | ✓    |\n| 5.0       | —   | ✓    | ✓    | ✓    | ✓    |\n| 5.1       | —   | ✓    | ✓    | ✓    | ✓    |\n\n## Quickstart\n\n\n1. Put the StaticInlineAppConfig along your apps.\n\n   ```python\n   INSTALLED_APPS = [\n       # ...\n       'staticinline.apps.StaticInlineAppConfig',\n   ]\n   ```\n   \n2. Load the template tag and pass a filename as you'd do with a `static`\n   template tag. You can also post-process the file content. In the example\n   below we encode the content of the `mykey.pem` file with base64. Several\n   encoders are already built-in, see the [Encoder docs].\n\n   ```html\n   {% load staticinline %}\n   \n   \u003cstyle\u003e{% staticinline \"myfile.css\" %}\u003c/style\u003e\n   My base64 encoded Key: {% staticinline \"mykey.pem\" encode=\"base64\" cache=True %}\n    ```\n   \n3. Enjoy the result:\n\n   ```html\n   \u003cstyle\u003ebody{ color: red; }\u003c/style\u003e\n   My base64 encoded Key: LS0tIFN1cGVyIFByaXZhdGUgS2V5IC0tLQo=\n   ```\n\n[Encoder docs]: https://docs.elephant.house/django-staticinline/encoder.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarttc%2Fdjango-staticinline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarttc%2Fdjango-staticinline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarttc%2Fdjango-staticinline/lists"}