Pongo2 template engine middleware for tango
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

939 B

tpongo2 Build Status

Middleware tpongo2 is a pongo2.v3 template engine support for Tango.


go get gitea.com/tango/tpongo2

Simple Example

package main

import (

type RenderAction struct {

func (a *RenderAction) Get() error {
    return a.RenderString("Hello {{ name }}!", pongo2.Context{
        "name": "tango",

func main() {
    o := tango.Classic()
    o.Get("/", new(RenderAction))

Getting Help