Skip to content

siredwin/pongorenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pongorenderer

Minimal Pongo2 renderer for Echo that just works.

Usage

Installation

go get "github.com/siredwin/pongorenderer/renderer"

The next step is to define renderer and call it

func main() {
  MainRenderer := renderer.Renderer{Debug:true}
  
  // Echo instance
  e := echo.New()
  
  //Use renderer
  e.Renderer = MainRenderer
}

somewhere in the program use Render

func index(c echo.Context) error {
	data := pongo2.Context{}
	return c.Render(http.StatusOK, "page.html", data)
}

About

Minimal Pongo2 renderer for Echo that just works.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages