pongo2 - Django-syntax like template-engine for Go

  •        8

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.




Related Projects

Algernon - Pure Go web server with built-in Lua, Markdown, HyperApp and Pongo2 support

Web server with built-in support for HTTP/2, Lua, Markdown, Pongo2, HyperApp, Amber, Sass(SCSS), GCSS, JSX, BoltDB, Redis, PostgreSQL, MariaDB/MySQL, rate limiting, graceful shutdown, plugins, users and permissions. Uses no external libraries, only pure Go.

ace - HTML template engine for Go

Ace is an HTML template engine for Go. This is inspired by Slim and Jade. This is a refinement of Gold.Ace fully utilizes the strength of the html/template package. You can embed actions of the template package in Ace templates. Ace also uses nested template definitions of the template package and Ace templates can pass pipelines (parameters) to other templates which they include.

ego - An ERB-style templating language for Go.

Ego is an ERb style templating language for Go. It works by transpiling templates into pure Go and including them at compile time. These templates are light wrappers around the Go language itself.Then run ego on a directory. Recursively traverse the directory structure and compile all .ego files.

hero - A handy, fast and powerful go template engine.

Hero is a handy, fast and powerful go template engine, which pre-compiles the html templates to go code. It has been used in production environment in bthub.io.Hero is the fastest and least-memory used among currently known template engines in the benchmark. The data of chart comes from https://github.com/SlinSo/goTemplateBenchmark. You can find more details and benchmarks from that project.

hermes - Golang package that generates clean, responsive HTML e-mails for sending transactional mail

Hermes is the Go port of the great mailgen engine for Node.js. Check their work, it's awesome! It's a package that generates clean, responsive HTML e-mails for sending transactional e-mails (welcome e-mails, reset password e-mails, receipt e-mails and so on), and associated plain text fallback.Theme templates will be embedded in your application binary. If you want to use external templates (for configuration), use your own theme by implementing hermes.Theme interface with code searching for your files.

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

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.

sprig - Useful template functions for Go templates.

The Go language comes with a built-in template language, but not very many template functions. This library provides a group of commonly used template functions.It is inspired by the template functions found in Twig and also in various JavaScript libraries, such as underscore.js.

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

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.

jet - Jet template engine

Jet is a template engine developed to be easy to use, powerful, dynamic, yet secure and very fast.You can find the documentation in the wiki.

plates - Native PHP template system

Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent Twig template engine and strives to bring modern template language functionality to native PHP templates. Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Smarty.Full documentation can be found at platesphp.com.

amber - Amber is an elegant templating engine for Go Programming Language, inspired from HAML and Jade

While Amber is perfectly fine and stable to use, I've been working on a direct Pug.js port for Go. It is somewhat hacky at the moment but take a look at Pug.go if you are looking for a Pug.js compatible Go template engine.

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

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.

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

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.

RazorLight - Template engine based on Microsoft's Razor parsing engine for .NET Core

The simplest scenario is to create a template from string. Each template must have a templateKey that is assosiated with it, so you can render the same template next time without recompilation.RazorLight can resolve templates from any source, but there are a built-in providers that resolve template source from filesystem and embedded resources.

blaze - :fire: Meteor Blaze is a powerful library for creating live-updating user interfaces

Blaze is a powerful library for creating user interfaces by writing reactive HTML templates. Compared to using a combination of traditional templates and jQuery, Blaze eliminates the need for all the "update logic" in your app that listens for data changes and manipulates the DOM. Instead, familiar template directives like {{#if}} and {{#each}} integrate with Tracker's "transparent reactivity" and Minimongo's database cursors so that the DOM updates automatically.A template compiler that compiles template files into JavaScript code that runs against the Blaze runtime library. Moreover, Blaze provides a compiler toolchain (think LLVM) that can be used to support arbitrary template syntaxes. The flagship template syntax is Spacebars, a variant of Handlebars, but a community alternative based on Jade is already in use by many apps.

Template Engine

Fast template processor for HTML/XML/text templates. No template language or new tags to learn. Templates can be valid HTML/XML. Easy to use and powerful!


The Template Abstraction Layer Library for XSLT is a java library that allows a programmer to use XSLT as a template engine. This library takes the ideas from web template engines like Smarty and uses XSLT as the template language.

gorazor - Razor view engine for Golang

gorazor -watch input_dir output_dir to auto re-generate code when file changes.Only use raw when you are 100% sure what you are doing, please always be aware of XSS attack.

HappyTemplate Template Engine

A simple, light weight template engine which is designed to be embedded in a larger program. The template language is very simple, yet highly flexible. It can be used to generate C#, VB.Net, HTML, XML and pretty much any other kind of text based output.

Apache Velocity - Java-based template engine

Velocity is a Java-based template engine. It permits anyone to use a simple yet powerful template language to reference objects defined in Java code. Velocity separates Java code from the web pages, making the web site more maintainable over its lifespan and providing a viable alternative to Java Server Pages (JSPs) or PHP.