Skip to main content

See http://wiki.nginx.org/HttpSsiModule

{% load nginxssi_tags %}
hello
{% nginxssi %}
    <b> okidoki </b> {%now "jS F Y H:i"%} Hello {{foo}}
{% endnginxssi %}
world

Renders inline as:

hello
<!--# include virtual="/nginxssi/a3e5fa678243e0bab620fbca75f6601d/" -->
world

A request to /nginxssi/a3e5fa678243e0bab620fbca75f6601d/ renders:

<b> okidoki </b> 25th January 2011 13:26 Hello bar

Nginx will stitch these two together to form:

hello
<b> okidoki </b> 25th January 2011 13:26 Hello bar
world

How it works

  1. The template is cached in its raw unrendered form

  2. The template string’s md5 hash is used as a cache key

  3. The template’s context is stored with the cache key as a prefix

  4. A request to the SSI url looks up the template and the context in the cache, renders it and returns the HttpResponse

Metadata

Release files for django-nginx-ssi 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-nginx-ssi 0.1.1
File Size Uploaded
django-nginx-ssi-0.1.1.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-nginx-ssi 0.1.1
File Interpreter ABI Platform
django_nginx_ssi-0.1.1-py2.6.egg Legacy Egg format - - Details

Total release size: 13.9 kB

Release files / django-nginx-ssi-0.1.1.tar.gz

Download URL django-nginx-ssi-0.1.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8043773a3db4d80efdffd97d64651401700981381b9bb62ec6ef1ae43522756
BLAKE2b-256 checksum
How to use checksums
81ae182dab2ae8481e487403aa359a6b7a5cd555e890b02e7b1519f1b53028d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_nginx_ssi-0.1.1-py2.6.egg

Download URL django_nginx_ssi-0.1.1-py2.6.egg
Size 8.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
a41f4adbc4d9c8804e131de6e1930b1d0283ac47cd78a75ebe4624fa9ae25357
BLAKE2b-256 checksum
How to use checksums
627f84317699b04c6f2022a3827db9d9b8c0d505f429c431934de684076c9583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page