jinja-js - JavaScript templating engine based on Jinja2

  •        7

Jinja is one of the most used template engines for Python. This project is a JavaScript implementation with emphasis on simplicity and performance, compiling templates into readable JavaScript that minifies well. It is designed to run on Node or in the browser and weighs in at 8.3KB minified / 3.2K gzip'd. Jinja is inspired by Django's templating system, just like Ruby's Liquid and PHP's Twig. They all have similar syntax for rendering variables, looping and filtering. This implementation aims to be compatible with Jinja2 and Liquid, but Twig is mostly the same also.




Related Projects

swig - Take a swig of the best template engine for JavaScript.

  •    Javascript

A simple, powerful, and extendable templating engine for node.js and browsers, similar to Django, Jinja2, and Twig.

jinja - The Jinja2 template engine

  •    Python

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. Application logic is for the controller, but don't make the template designer's life difficult by restricting functionality too much.

Twig - Twig, the flexible, fast, and secure template language for PHP

  •    PHP

Twig is a template language for PHP, released under the new BSD license (code and documentation). Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.

askama - Type-safe, compiled Jinja-like templates for Rust

  •    Rust

Askama implements a template rendering engine based on Jinja. It generates Rust code from your templates at compile time based on a user-defined struct to hold the template's context. See below for an example, or read the documentation. All feedback welcome. Feel free to file bugs, requests for documentation and any other feedback to the issue tracker or tweet me. Many thanks to David Tolnay for his support in improving Askama.

handlebars-layouts - Handlebars helpers which implement layout blocks similar to Jinja, Nunjucks (Swig), Pug (Jade), and Twig

  •    Javascript

Handlebars helpers which implement layout blocks similar to Jade, Jinja, Nunjucks, Swig, and Twig.Helpers are generated by passing in your instance of Handlebars. This allows you to selectively register the helpers on various instances of Handlebars.

jinjasql - Simplify creation and maintenance of complex SQL queries by using Jinja based template language

  •    Python

JinjaSQL is a template language for SQL statements and scripts. Since it's based in Jinja2, you have all the power it offers - conditional statements, macros, looping constructs, blocks, inheritance, and many more. JinjaSQL doesn't actually execute the query - it only prepares the query and the bind parameters. You can execute the query using any database engine / driver you are working with.

django-jinja - Simple and nonobstructive jinja2 integration with Django.

  •    Python

Simple and nonobstructive jinja2 integration with Django. Tox will create virtualenvs for different interpreter versions and run the test suite.

pyxley - Python helpers for building dashboards using Flask and React

  •    Javascript

The Pyxley python library makes use of the pyxleyJS React components to create Flask-based web applications. Through the use of the PyReact library, we can use Jinja templating to construct and transform a single React component. The specific UI components are passed as props to the parent component. A simpler interface is provided through the use of specific wrappers for each of the component types. An example of the Jinja template for a single React component is presented below.

tera - A template engine for Rust based on Jinja2/Django

  •    Rust

Tera is a template engine inspired by Jinja2 and the Django template language. API documentation is available on docs.rs.

nunjucks - A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

  •    Javascript

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

Twig.js - pure JavaScript implementation of the Twig PHP templating language

  •    Javascript

Twig.js is a pure JavaScript implementation of the Twig PHP templating language. The goal is to provide a library that is compatible with both browsers and server side JavaScript environments such as node.js.

Pebble - A lightweight but rock solid Java templating engine

  •    Java

Pebble is a java template template engine inspired by Twig. It separates itself from the crowd with it's inheritance feature and it's easy-to-read syntax. It ships with built-in autoescaping for security, and it includes integrated support for internationalization.

Flask - Python Microframework

  •    Python

Flask is a micro framework for Python based on Werkzeug, Jinja 2 template engine. It is intended for getting started very quickly and was developed with best intentions in mind. It has built-in development server and debugger. It supports REST, secure cookies and lot more.

pongo2 - Django-syntax like template-engine for Go

  •    Go

pongo2 is the successor of pongo, a Django-syntax like templating-language.Please use the issue tracker if you're encountering any problems with pongo2 or if you need help with implementing tags or filters (create a ticket!). If possible, please use playground to create a short test case on what's wrong and include the link to the snippet in your issue.

twig.js - twig.js, flexible, secure, and high-performance templating engine for Javascript

  •    PHP

Twig.js is a PHP project that compiles Twig templates into executable Javascript for client-side execution. It is not to be confused with Twig.js, which is a pure Javascript implementation of the Twig templating language. Compatibility with vanilla PHP Twig is not yet at 100%. If you need your templates to work with both Twig.js and Twig, stick to the supported filters and functions described below.

twig.js - JS implementation of the Twig Templating Library

  •    Javascript

JS implementation of the Twig Templating Library

flask - The Python micro framework for building web applications.

  •    Python

Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks. Flask offers suggestions, but doesn't enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use. There are many extensions provided by the community that make adding new functionality easy.

jinja2 - The Jinja2 template engine

  •    Python

The Jinja2 template engine

Flask-GoogleMaps - Easy way to add GoogleMaps to Flask applications.

  •    Python

Flask-GoogleMaps includes some global functions and template filters in your Jinja environment, also it allows you to use the Map in views if needed. That's it! now you have some template filters and functions to use, more details in examples and screenshot below.

Selmer - A fast, Django inspired template system in Clojure.

  •    Clojure

A fast, Django inspired template system for Clojure. Selmer templates consist of plain text that contains embedded expression and filter tags. While Selmer is primarily meant for HTML generation, it can be used for templating any text.