{"id":21296447,"url":"https://github.com/mawngo/go-tmpls","last_synced_at":"2025-03-15T17:24:59.460Z","repository":{"id":255909579,"uuid":"853855327","full_name":"mawngo/go-tmpls","owner":"mawngo","description":"Template caching and utilities for go","archived":false,"fork":false,"pushed_at":"2025-03-07T12:12:58.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T12:27:45.373Z","etag":null,"topics":["cache","golang","pagination","template","template-cache"],"latest_commit_sha":null,"homepage":"","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/mawngo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-07T18:11:14.000Z","updated_at":"2025-03-07T12:13:01.000Z","dependencies_parsed_at":"2024-09-09T20:25:19.172Z","dependency_job_id":"fd9cae1b-93b7-4781-9a54-cb2323570fa7","html_url":"https://github.com/mawngo/go-tmpls","commit_stats":null,"previous_names":["mawngo/go-tmpls"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgo-tmpls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgo-tmpls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgo-tmpls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgo-tmpls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mawngo","download_url":"https://codeload.github.com/mawngo/go-tmpls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243764277,"owners_count":20344396,"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":["cache","golang","pagination","template","template-cache"],"created_at":"2024-11-21T14:26:39.248Z","updated_at":"2025-03-15T17:24:59.439Z","avatar_url":"https://github.com/mawngo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Templates\n\nTemplate caching and paging utilities. Require go 1.22+\n\n## Usage\n\n```shell\ngo get github.com/mawngo/go-tmpls\n```\n\n## Template Caching\n\nCache the template for re-execution without having to parse it again, support template reload for development.\n\nSee [examples](/examples/main.go) for setup and integrating template cache.\n\n### Built-in template funcs\n\nBy default, this library adds some [helpers](/internal/builtin.go) to the template.\nTo disable all built-in functions use`WithoutBuiltins()`, or `WithoutBuiltins('fn1', 'fn2', ...)` to disable specific\nfunction.\n\nYou can add custom funcs using `WithFuncs`.\n\n### Custom cache\n\nBy default, this library uses a map to store all parsed templates, thus make them never expire. If you want expiration,\nuse `WithCache(impl)` to provide your own `Cache[*template.Template]` implementation.\n\n### No cache\n\nWhen cache is enabled (default), change to the template that has been parsed will not be visible until you rerun the\nproject (or the cache expired if you use custom cache implementation).\n\nUse `WithNocache(true)` to disable template cache, force template to parse again on each execution.\n\n## Pagination\n\nThis library provides a simple pagination implementation for using in template.\nSee [page](/page) package and the [example](/examples).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawngo%2Fgo-tmpls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmawngo%2Fgo-tmpls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawngo%2Fgo-tmpls/lists"}