Skip to content

ipfans/beego-pongo2.v2

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

beego-pongo2.v2

A tiny little helper for using Pongo2 (v2) with Beego.

Status: With little tests. IF YOU FIND BUGS, PLS LET ME KNOW.

Documentation: http://godoc.org/github.com/ipfans/beego-pongo2.v2

Based on https://github.com/oal/beego-pongo2

Usage

package controllers

import (
    "github.com/astaxie/beego"
    "github.com/ipfans/beego-pongo2.v2"
)

type MainController struct {
    beego.Controller
}

func (this *MainController) Get() {
    pongo2.Render(this.Ctx, "page.html", pongo2.Context{
        "ints": []int{1, 2, 3, 4, 5},
    })
}

About

A tiny little helper for using Pongo2 (v2) with Beego. [Not in maintenance]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages