{"id":19168649,"url":"https://github.com/ngerakines/ginpongo2","last_synced_at":"2025-05-07T14:42:42.933Z","repository":{"id":18299153,"uuid":"21474330","full_name":"ngerakines/ginpongo2","owner":"ngerakines","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-19T13:09:44.000Z","size":6,"stargazers_count":33,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T11:02:48.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngerakines.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-03T19:25:21.000Z","updated_at":"2024-07-02T02:37:39.000Z","dependencies_parsed_at":"2022-07-26T02:32:06.561Z","dependency_job_id":null,"html_url":"https://github.com/ngerakines/ginpongo2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngerakines%2Fginpongo2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngerakines%2Fginpongo2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngerakines%2Fginpongo2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngerakines%2Fginpongo2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngerakines","download_url":"https://codeload.github.com/ngerakines/ginpongo2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249830834,"owners_count":21331355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-09T09:43:21.383Z","updated_at":"2025-04-19T23:31:21.340Z","avatar_url":"https://github.com/ngerakines.png","language":"Go","funding_links":[],"categories":["Go"],"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%2Fngerakines%2Fginpongo2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngerakines%2Fginpongo2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngerakines%2Fginpongo2/lists"}