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

  •        248

A powerful, easy to use template engine for Rust, inspired by Jinja2 and the Django template language. It is designed from the ground up to be easy to use and provide good error messages. Template compilation and rendering are measured in nanoseconds.

https://github.com/Keats/tera
https://tera.netlify.app/

Tags
Implementation
License
Platform

   




Related Projects

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.

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.

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.

jinja2 - The Jinja2 template engine

  •    Python

The Jinja2 template engine

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.


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.

maud - :pencil: Compile-time HTML templates for Rust

  •    Rust

Maud is an HTML template engine for Rust. It's implemented as a macro, html!, which compiles your markup to specialized Rust code. This unique approach makes Maud templates blazing fast, super type-safe, and easy to deploy. Note that Maud depends on the unstable procedural macro API, and so requires the nightly version of Rust.

flask-appengine-template - Boilerplate project template for running Flask on Google App Engine

  •    Python

This project does not currently support deployments on the App Engine Flexible environment, although it could potentially work on App Engine Flexible with some modifications. Flask is a BSD-licensed microframework for Python based on Werkzeug, Jinja2 and good intentions.

gtf - gtf - a useful set of Golang Template Functions

  •    Go

gtf is a useful set of Golang Template Functions. The goal of this project is implementing all built-in template filters of Django & Jinja2.gtf.New is a wrapper function of template.New. It automatically adds the gtf functions to the template's function map and returns template.Template.

templating - This repo contains the Template Engine which is used by dotnet new

  •    CSharp

This repository is the home for the .NET Core Template Engine. It contains the brains for dotnet new. When dotnet new is invoked, it will call the Template Engine to create the artifacts on disk. Template Engine is a library for manipulating streams, including operations to replace values, include/exclude regions and process if, else if, else and end if style statements.We have created a dotnet template samples repo, which shows how you can use the Template Engine to create new templates. The samples are setup to be stand alone for specific examples. If you are in need of a sample, and it doesn't exist please create an issue in the samples repo.

jinjasql - Template Language for SQL with Automatic Bind Parameter Extraction

  •    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.

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)

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.

HamlPy - A converter of HAML like templates into Django templates.

  •    Python

HamlPy (pronounced "haml pie") is a tool for Django developers who want to use a Haml like syntax for their templates. HamlPy is not a template engine in itself but simply a compiler which will convert HamlPy files into templates that Django can understand. But wait, what is Haml? Haml is an incredible template engine written in Ruby used a lot in the Rails community. You can read more about it here.

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.

cargo-generate - cargo, make me a project

  •    Rust

cargo-generate is a developer tool to help you get up and running quickly with a new Rust project by leveraging a pre-existing git repository as a template. See the openssl-sys crate readme on how to obtain the OpenSSL library for your system. Alternatively, use the vendored-openssl flag if you do not want to install OpenSSL.

h2o-php - A beautiful template engine for PHP in Django style

  •    PHP

A beautiful template engine for PHP in Django style

django-project-template - Project template layout for Django 1.10+

  •    Python

This is a simple Django 1.11+ project template with my preferred setup. Most Django project templates make way too many assumptions or are just way too complicated. I try to make the least amount of assumptions possible while still trying provide a useful setup. Most of my projects are deployed to Heroku, so this is optimized for that but is not necessary.Note: If you're looking for the previous Django 1.7+ project template layout check out the 1.7 branch.

django-base-template - A Django 1.8 base template with HTML5Boilerplate and Twitter Bootstrap

  •    Python

This project template is designed for Django startproject template option. This version of the project template is designed for Django 1.8. As much as I could, all the code has been updated to use the any suggested layouts and functionality in Django 1.8.

django-debug-toolbar-template-timings - A django-debug-toolbar panel that displays template rendering times for your Django application

  •    Python

Template-timings is a panel for Django Debug Toolbar that gives an in-dept breakdown of the time it takes to render your Django templates (including templates included via {% extends %} and {% include %}). Template-timings supports Django 1.11 and below, Django 2.0 and above do not work at the moment.