Pongo2

screenshot of Pongo2
django

Pongo2

Django-syntax like template-engine for Go

Overview

Pongo2 is a template language that is compatible with Django 1.7. It offers advanced C-like expressions, easy API to create new filters and tags, and additional features like macros and template sandboxing. Pongo2 is installed using go get and does not have any dependencies.

Features

  • Syntax- and feature-set-compatible with Django 1.7
  • Advanced C-like expressions
  • Complex function calls within expressions
  • Easy API to create new filters and tags
  • Macros including importing macros from other files
  • Template sandboxing
  • Various filters like date/time, string format, escape/force escape
  • For loop fields with capitalized beginning
  • Support for Go's time format
  • In-operator to check if a map/struct/string contains a key/field/substring

Summary

Pongo2 is a powerful template language for Go that is compatible with Django 1.7. It offers a wide range of features including advanced expressions, easy API for creating filters and tags, and support for macros and template sandboxing. It is easy to install and does not have any dependencies. Pongo2 is a popular choice for developers looking for a template language in Go.

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.