All Projects → pallets → Jinja

pallets / Jinja

Licence: bsd-3-clause
A very fast and expressive template engine.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Jinja

Jinja2cpp
Jinja2 C++ (and for C++) almost full-conformance template engine implementation
Stars: ✭ 257 (-96.85%)
Mutual labels:  templates, template-engine, jinja2
Cookie
A Template-based File Generator. Like cookiecutter but works with file templates instead of project templates.
Stars: ✭ 261 (-96.81%)
Mutual labels:  templates, template-engine, jinja2
pyLODE
An OWL ontology documentation tool using Python and templating, based on LODE
Stars: ✭ 116 (-98.58%)
Mutual labels:  jinja2, templates
templatel
Jinja inspired template language for Emacs Lisp
Stars: ✭ 46 (-99.44%)
Mutual labels:  template-engine, jinja2
liquidpy
A port of liquid template engine for python
Stars: ✭ 49 (-99.4%)
Mutual labels:  template-engine, jinja2
Redzone
Lightweight C++ template engine with Jinja2-like syntax
Stars: ✭ 30 (-99.63%)
Mutual labels:  template-engine, jinja2
liquid
A Python engine for the Liquid template language.
Stars: ✭ 40 (-99.51%)
Mutual labels:  template-engine, templates
minijinja
MiniJinja is a powerful but minimal dependency template engine for Rust
Stars: ✭ 540 (-93.39%)
Mutual labels:  jinja2, templates
Tera
A template engine for Rust based on Jinja2/Django
Stars: ✭ 1,873 (-77.07%)
Mutual labels:  template-engine, jinja2
nunjucks-loader
Webpack loader for Nunjucks templates
Stars: ✭ 20 (-99.76%)
Mutual labels:  template-engine, templates
lua-resty-aries
openresty and lua multi-function template
Stars: ✭ 47 (-99.42%)
Mutual labels:  template-engine, templates
Jade
Jade.go - pug template engine for Go (golang)
Stars: ✭ 251 (-96.93%)
Mutual labels:  templates, template-engine
Pongo2
Django-syntax like template-engine for Go
Stars: ✭ 2,111 (-74.16%)
Mutual labels:  templates, template-engine
jinja.dart
Jinja2 template engine port for Dart.
Stars: ✭ 38 (-99.53%)
Mutual labels:  template-engine, jinja2
Handlebars.java
Logic-less and semantic Mustache templates with Java
Stars: ✭ 1,204 (-85.26%)
Mutual labels:  templates, template-engine
dry
Dry is a new template engine and language, and is a superset of Shopify's Liquid, with first-class support for advanced inheritance features, and more. From the creators of Enquirer, Assemble, Remarkable, and Micromatch.
Stars: ✭ 66 (-99.19%)
Mutual labels:  template-engine, templates
Jingoo
OCaml template engine almost compatible with jinja2
Stars: ✭ 86 (-98.95%)
Mutual labels:  template-engine, jinja2
voldemort
A simple static site generator using Jinja2 and Markdown templates.
Stars: ✭ 48 (-99.41%)
Mutual labels:  template-engine, jinja2
Email Templates
📫 Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more!
Stars: ✭ 3,291 (-59.72%)
Mutual labels:  templates, template-engine
Mikado
Mikado is the webs fastest template library for building user interfaces.
Stars: ✭ 323 (-96.05%)
Mutual labels:  templates, template-engine

Jinja

Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. Then the template is passed data to render the final document.

It includes:

  • Template inheritance and inclusion.
  • Define and import macros within templates.
  • HTML templates can use autoescaping to prevent XSS from untrusted user input.
  • A sandboxed environment can safely render untrusted templates.
  • AsyncIO support for generating templates and calling async functions.
  • I18N support with Babel.
  • Templates are compiled to optimized Python code just-in-time and cached, or can be compiled ahead-of-time.
  • Exceptions point to the correct line in templates to make debugging easier.
  • Extensible filters, tests, functions, and even syntax.

Jinja's philosophy is that while application logic belongs in Python if possible, it shouldn't make the template designer's job difficult by restricting functionality too much.

Installing

Install and update using pip:

$ pip install -U Jinja2

In A Nutshell

{% extends "base.html" %}
{% block title %}Members{% endblock %}
{% block content %}
  <ul>
  {% for user in users %}
    <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  {% endfor %}
  </ul>
{% endblock %}

Donate

The Pallets organization develops and supports Jinja and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].