{"id":13581640,"url":"https://github.com/gomatic/renderizer","last_synced_at":"2025-08-30T18:10:45.617Z","repository":{"id":48097031,"uuid":"77962122","full_name":"gomatic/renderizer","owner":"gomatic","description":"CLI to render Go template text files based on command line parameters and/or a YAML","archived":false,"fork":false,"pushed_at":"2021-08-06T21:11:50.000Z","size":1290,"stargazers_count":54,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-05T21:44:52.872Z","etag":null,"topics":["command-line","template"],"latest_commit_sha":null,"homepage":"https://github.com/gomatic/renderizer","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gomatic.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":"2017-01-03T23:28:33.000Z","updated_at":"2024-09-03T16:44:58.000Z","dependencies_parsed_at":"2022-08-25T11:12:30.751Z","dependency_job_id":null,"html_url":"https://github.com/gomatic/renderizer","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Frenderizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Frenderizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Frenderizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Frenderizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gomatic","download_url":"https://codeload.github.com/gomatic/renderizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238968610,"owners_count":19560591,"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":["command-line","template"],"created_at":"2024-08-01T15:02:08.894Z","updated_at":"2025-02-15T08:35:32.355Z","avatar_url":"https://github.com/gomatic.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# renderizer\n\n[![Build Status](https://travis-ci.org/gomatic/renderizer.svg?branch=master)](https://travis-ci.org/gomatic/renderizer)\n\nRender Go text templates from the command line.\n\n    go get github.com/gomatic/renderizer/v2/cmd/renderizer\n\nSupports providing top-level name/value pairs on the command line:\n\n    echo 'Hello, {{.User}}' | renderizer --user=${USER}\n\nAnd read from the environment: \n\n    echo 'Hello, {{.env.USER}}' | renderizer\n\n## Usage:\n\n    renderizer [OPTIONS] [--name=value]... [template-file]...\n\n## Examples\n\nRender the `pod.yaml.tmpl` using values from `examples/pod/.renderizer.yaml`:\n\n    renderizer --settings=examples/pod/.pod.yaml examples/pod/pod.yaml.tmpl\n\nOr set `RENDERIZER` in the environment:\n\n    RENDERIZER=examples/.pod.yaml renderizer examples/pod/pod.yaml.tmpl\n\nAlternatively, it'll try `.pod.yaml` in the current directory.\n\n    (cd examples/pod; renderizer)\n\nNext, override the `deployment` value to render the \"dev\" `pod.yaml.tmpl` (after `cd examples/pod`):\n\n    renderizer --deployment=dev --name='spaced out'\n\nFor more examples, see the [`examples`](examples) folder.\n\n# Configuration\n\n### Settings\n\nSettings can be loaded from any YAMLs:\n\n    renderizer --settings=.settings1.yaml --settings=.settings2.yaml --name=value template-file\n\n### Capitalization `-C`\n\nThis is a positional toggle flag.\n\nVariable names are converted to title case by default. It can be disabled for any subsequent variables:\n\n    renderizer --name=value -C --top=first template-file\n\nSets:\n\n    Name: value\n    top: first\n\n### Missing Keys\n\nControl the missingkeys template-engine option:\n\n    renderizer --missing=zero --top=first template-file\n\n### Environment\n\nProvide a name for the environment variables:\n\n    renderizer --environment=env template-file\n\nIt defaults to `env` which is effectively the same as the above `--environment=env`.\n\n## Template Functions\n\nFor the full list, see [functions.txt.tmpl](examples/functions/functions.txt.tmpl)\n\n- `add` - `func(a, b int) int`\n- `cleanse` - `func(s string) string` - remove `[^[:alpha:]]`\n- `commandLine` - `func() string` the command line\n- `environment` - `map[string]string` - the runtime environment\n- `inc` - `func(a int) int`\n- `join` - `func(a []interface, sep string) string`\n- `lower` - `strings.ToLower`\n- `now` - `time.Now`\n- `replace` - `strings.Replace`\n- `trim` - `strings.Trim`\n- `trimLeft` - `strings.TrimLeft`\n- `trimRight` - `strings.TrimRight`\n- `upper` - `strings.ToUpper`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomatic%2Frenderizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgomatic%2Frenderizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomatic%2Frenderizer/lists"}