Skip to content

mesuutt/echopongo2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

echo pongo2 renderer

Use pongo2 templates in the echo web framework

Installation

go get github.com/mesuutt/echopongo2

Usage

echopongo2 implements the echo Renderer interface

e := echo.New()
r, err := echopongo2.NewRenderer("./template")
e.Renderer = r

Somewhere in a handler

func Hello(c *echo.Context) error {
    data := map[string]string{"World":"mayowa"}
    return c.Render(http.StatusOK, "hello.html", data)
}

About

Use pongo2 templates in echo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%