{"id":16768015,"url":"https://github.com/bouk/statictemplate","last_synced_at":"2025-03-21T23:33:50.910Z","repository":{"id":57500896,"uuid":"67241337","full_name":"bouk/statictemplate","owner":"bouk","description":"Statictemplate is a code generator for Go's text/template and html/template.","archived":false,"fork":false,"pushed_at":"2018-08-21T12:20:56.000Z","size":74,"stargazers_count":78,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T06:11:42.360Z","etag":null,"topics":[],"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/bouk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-02T17:16:37.000Z","updated_at":"2024-03-15T16:39:39.000Z","dependencies_parsed_at":"2022-08-31T11:50:24.118Z","dependency_job_id":null,"html_url":"https://github.com/bouk/statictemplate","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/bouk%2Fstatictemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fstatictemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fstatictemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fstatictemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouk","download_url":"https://codeload.github.com/bouk/statictemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885392,"owners_count":20526287,"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-10-13T06:10:33.986Z","updated_at":"2025-03-21T23:33:50.548Z","avatar_url":"https://github.com/bouk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statictemplate\n\nStatictemplate is a code generator for Go's text/template and html/template packages. It works by reading in the template files, and generating the needed functions based on the combination of requested function names and type signatures.\n\nPlease read [my blogpost](http://bouk.co/blog/code-generating-code/) about this project for some background.\n\n## Installation\n\nTo install the commandline tool, run `go get bou.ke/statictemplate`.\n\n## Usage\n\nThese are the supported flags:\n\n```\nUsage of statictemplate:\n  -dev string\n        Name of the dev output file\n  -funcs string\n        A reference to a custom Funcs map to include\n  -html\n        Interpret templates as HTML, to enable Go's automatic HTML escaping\n  -o string\n        Name of the output file (default \"template.go\")\n  -package string\n        Name of the package of the result file. Defaults to name of the folder of the output file\n  -t value\n        Target to process, supports multiple. The format is \u003cfunction name\u003e:\u003ctemplate name\u003e:\u003ctype of the template argument\u003e\n```\n\nAfter the flags you pass in one or more globs to specify the templates.\n\n\nThe example in this project uses the following command\n\n```\nstatictemplate -html -o example/template/template.go -t \"Index:index.tmpl:[]bou.ke/statictemplate/example.Post\" example/template/*.tmpl\n```\n\n## Docs\n\n[Check out the docs](https://godoc.org/bou.ke/statictemplate/statictemplate).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Fstatictemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouk%2Fstatictemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Fstatictemplate/lists"}