{"id":37125162,"url":"https://github.com/flosch/ginpongo2","last_synced_at":"2026-01-14T14:28:35.702Z","repository":{"id":18868890,"uuid":"22085846","full_name":"flosch/ginpongo2","owner":"flosch","description":null,"archived":false,"fork":true,"pushed_at":"2014-07-22T08:22:14.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T02:17:35.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ngerakines/ginpongo2","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flosch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-22T01:03:00.000Z","updated_at":"2020-04-09T11:44:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/flosch/ginpongo2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flosch/ginpongo2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fginpongo2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fginpongo2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fginpongo2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fginpongo2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flosch","download_url":"https://codeload.github.com/flosch/ginpongo2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2Fginpongo2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T14:28:35.060Z","updated_at":"2026-01-14T14:28:35.696Z","avatar_url":"https://github.com/flosch.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ginpongo2\n\nThe `github.com/ngerakines/ginpongo2` package provides a middleware that can be used to render pongo2 templates.\n\n## Example\n\nTo use this, first ensure that the middleware is being referenced by gin using `Use`. Then inide of your handler, use the context `Set` methods to set the \"template\" and \"data\" variables.\n\n```go\npackage main\n\nimport (\n\t\"github.com/gin-gonic/gin\"\n\t\"github.com/ngerakines/ginpongo2\"\n\t\"log\"\n)\n\nfunc main() {\n\tr := gin.Default()\n\tr.Use(ginpongo2.Pongo2())\n\n\tr.GET(\"/\", func(c *gin.Context) {\n\t\tc.Set(\"template\", \"index.html\")\n\t\tc.Set(\"data\", map[string]interface{}{\"message\": \"Hello World!\"})\n\t})\n\n\te := r.Run(\":8080\")\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosch%2Fginpongo2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflosch%2Fginpongo2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosch%2Fginpongo2/lists"}