{"id":19049544,"url":"https://github.com/crhntr/templatedocumentation","last_synced_at":"2026-06-19T08:01:43.882Z","repository":{"id":248605677,"uuid":"829173718","full_name":"crhntr/templatedocumentation","owner":"crhntr","description":"Go HTML Template Documentation","archived":false,"fork":false,"pushed_at":"2025-04-16T22:24:12.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-24T08:42:32.914Z","etag":null,"topics":["documentation","go","template"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/crhntr.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-15T22:58:49.000Z","updated_at":"2025-02-23T09:15:16.000Z","dependencies_parsed_at":"2024-11-08T23:11:16.383Z","dependency_job_id":null,"html_url":"https://github.com/crhntr/templatedocumentation","commit_stats":null,"previous_names":["crhntr/templatedocumentation"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/crhntr/templatedocumentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crhntr%2Ftemplatedocumentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crhntr%2Ftemplatedocumentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crhntr%2Ftemplatedocumentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crhntr%2Ftemplatedocumentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crhntr","download_url":"https://codeload.github.com/crhntr/templatedocumentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crhntr%2Ftemplatedocumentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["documentation","go","template"],"created_at":"2024-11-08T23:11:13.191Z","updated_at":"2026-06-19T08:01:43.850Z","avatar_url":"https://github.com/crhntr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate HTTP Template Documentation for your Project [![Go Reference](https://pkg.go.dev/badge/github.com/templatedocumentation/dom.svg)](https://pkg.go.dev/github.com/crhntr/templatedocumentation)\n\n## Usage\n\n1. Create a main package to serve the documentation\n\n   `mkdir -p ./cmd/template-docs`\n\n\n2. Create a `main.go` file in the `./cmd/template-docs` directory\n\n   ```go\n   package main\n\n   import (\n      \"cmp\"\n      _ \"embed\"\n      \"html/template\"\n      \"log\"\n      \"net/http\"\n      \"os\"\n\n       \"github.com/crhntr/templatedocumentation\"\n\n       \"example.com/org/module/internal/hypertext\" // replace with your module\n   )\n\n   func main() {\n      h := templatedocumentation.Handler(func() (*template.Template, template.FuncMap, error) {\n         fn := hypertext.Functions()\n         ts, err := hypertext.Template()\n         return ts, fn, err\n      })\n      log.Fatal(http.ListenAndServe(\":\"+cmp.Or(os.Getenv(\"DOCS_PORT\"), \"8200\"), h))\n   }\n   ```\n\n3. Run the server\n\n   `go run ./cmd/template-docs`\n\n\n4. Navigate to `http://localhost:8200` to view the documentation.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrhntr%2Ftemplatedocumentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrhntr%2Ftemplatedocumentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrhntr%2Ftemplatedocumentation/lists"}