A straightforward Mustache-powered template engine for Django, extracted from wq.db and updated to support the new template backend infrastructure in Django 1.8 and newer. django-mustache facilitates progressive enhancement by allowing you to share the same templates between Django and an offline-capable JavaScript web app. Combined with a shared URL structure, this approach ensures that each page in your site can be selectively rendered on the server or on the client as needed.
A number of Pystache/Mustache backends for Django exist, though many are outdated. Only this library provides all of the following:
django.template.context_processors.csrf
and django.contrib.auth.context_processors.auth
.**wq/app.js provides client-side equivalents for these context variables.
pip3 install django-mustache
Configure django-mustache like you would any template backend:
# myproject/settings.py TEMPLATES = [ { 'BACKEND': 'django_mustache.Mustache', 'DIRS': [ '...' ], 'APP_DIRS': False, 'OPTIONS': { 'context_processors': [ '...' ], 'partials_dir': 'partials', 'file_extension': 'html', } }, # ... ]
The following configuration options are supported:
False
to disable this feature.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4