Djanjucks

screenshot of Djanjucks
django

A Django flavoured Template Engine running on Nunjucks.

Overview

Djanjucks is a library that allows parsing of Django templates into static HTML using the Nunjucks template engine. It extends the Nunjucks Environment with Django's tags and filters, making it a close match to Django's template syntax.

Features

  • Uses Nunjucks as a template engine, but extends it to align with Django's templating format
  • Extends the Nunjucks Environment with tags and filters that have feature compatibility with Django
  • Allows parsing of Django templates into static HTML
  • Supports all default tags and filters from Django, except for those that don't make sense in a frontend context
  • Does not currently implement the installJinjaCompat Nunjucks extension, but may be added in the future with a custom implementation

Summary

Djanjucks is a library that bridges the gap between Django and the Nunjucks template engine. It allows for parsing of Django templates into static HTML and extends Nunjucks with Django's tags and filters. Despite not including some tags that are not relevant in a frontend context, Djanjucks aims to provide feature compatibility with Django's template syntax.

django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.