{"id":15663991,"url":"https://github.com/rjshrjndrn/templater","last_synced_at":"2026-02-08T08:15:56.241Z","repository":{"id":221933358,"uuid":"755811070","full_name":"rjshrjndrn/templater","owner":"rjshrjndrn","description":"CMD golang template cli using sprig library. Like helm. But only for local templating.","archived":false,"fork":false,"pushed_at":"2026-02-07T13:26:44.000Z","size":56,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-07T22:14:26.044Z","etag":null,"topics":["config","configuration","golang","helm","json","kubernetes","open-source","template","yaml"],"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/rjshrjndrn.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-02-11T06:02:45.000Z","updated_at":"2026-02-07T13:26:40.000Z","dependencies_parsed_at":"2024-02-23T00:26:57.035Z","dependency_job_id":"86e95020-c2b1-42d2-8587-7cf7d453c63c","html_url":"https://github.com/rjshrjndrn/templater","commit_stats":null,"previous_names":["rjshrjndrn/templater"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/rjshrjndrn/templater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjshrjndrn%2Ftemplater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjshrjndrn%2Ftemplater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjshrjndrn%2Ftemplater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjshrjndrn%2Ftemplater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjshrjndrn","download_url":"https://codeload.github.com/rjshrjndrn/templater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjshrjndrn%2Ftemplater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29225475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T06:05:31.539Z","status":"ssl_error","status_checked_at":"2026-02-08T05:58:33.853Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["config","configuration","golang","helm","json","kubernetes","open-source","template","yaml"],"created_at":"2024-10-03T13:40:44.471Z","updated_at":"2026-02-08T08:15:56.237Z","avatar_url":"https://github.com/rjshrjndrn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Templater\n\n![License](https://img.shields.io/badge/license-MIT-green.svg) ![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg) ![Version](https://img.shields.io/badge/version-3.0.0-blue.svg)\n\n**Templater** is a cli tool that helps you to quickly and easily create files from templates, using go template.\n\n## How to use\n\n1. Inline variables\n\n```bash\n# File using helm templating\ncat \u003c\u003c'EOF'\u003efile\n---\n{{- $name := \"John\" }}\nclass:\n{{- range $i := until 11 }}\n  {{$i}}: {{$name}}\n{{- end }}\nEOF\n\ntemplater -i file\n\n# This will be the output\n\nFile: out/file\n---\nclass:\n  0: John\n  1: John\n  2: John\n  3: John\n  4: John\n  5: John\n  6: John\n  7: John\n  8: John\n  9: John\n  10: John\n\n```\n\n2. Passing variables from external yaml, using helm style templating.\n\n```bash\n# Value file\ncat \u003c\u003c'EOF'\u003evalues.yaml\nschool: Govt. Public School\nEOF\n# File using helm templating\ncat \u003c\u003c'EOF'\u003efile\n---\n{{- $name := \"John\" }}\nclass:\n  school: {{ .Values.school }}\n{{- range $i := until 11 }}\n  {{$i}}: {{$name}}\n{{- end }}\nEOF\n\ntemplater -i file -f values.yaml -o out/\n\n# This will be the output\n\nFile: out/file\n---\nclass:\n  school: Govt. Public School\n  0: John\n  1: John\n  2: John\n  3: John\n  4: John\n  5: John\n  6: John\n  7: John\n  8: John\n  9: John\n  10: John\n```\n\n3. Using stdin\n\n```bash\n# Value file\ncat \u003c\u003c'EOF'\u003evalues.yaml\nname: Rajesh\nEOF\n\necho \"hi: {{.Values.name}}\" | templater -f values.yaml -i -\n\noutput:\n\nhi: Rajesh\n```\n\n4. Using --set to override values (Helm-compatible)\n\n```bash\n# Basic dot notation\ntemplater -i deployment.yaml -f values.yaml --set app.replicas=3 --set app.enabled=true\n\n# Arrays\ntemplater -i template.yaml --set 'hosts={host1,host2,host3}'\n\n# Array indexes\ntemplater -i template.yaml --set 'servers[0].port=8080' --set 'servers[0].host=localhost'\n\n# Escaping commas and dots\ntemplater -i template.yaml --set 'annotation=value\\,with\\,commas'\ntemplater -i template.yaml --set 'nodeSelector.kubernetes\\.io/role=master'\n```\n\nPriority order (highest to lowest):\n1. `--set` flags\n2. `-f` values files (last file takes precedence over earlier ones)\n\n### Installation\n\n1. HomeBrew\n\n`brew install rjshrjndrn/tap/templater`\n\n2. Binary\n\nDownload the latest binary from [Release Page.](https://github.com/rjshrjndrn/templater/releases)\n\n3. Using go get\n\n```bash\ngo install github.com/rjshrjndrn/templater/v6@latest\n```\n\n4. Github Action\n\n```yaml\n- name: Download templater\n  run: |\n    curl https://i.jpillora.com/rjshrjndrn/templater! | bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjshrjndrn%2Ftemplater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjshrjndrn%2Ftemplater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjshrjndrn%2Ftemplater/lists"}