{"id":19805996,"url":"https://github.com/cycloidio/tmpltui","last_synced_at":"2026-02-26T00:33:03.090Z","repository":{"id":240030919,"uuid":"747224912","full_name":"cycloidio/tmpltui","owner":"cycloidio","description":"TUI to show Go template files and the rendered result side by side ","archived":false,"fork":false,"pushed_at":"2024-10-30T14:24:42.000Z","size":2509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-19T09:48:48.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cycloidio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-23T14:15:25.000Z","updated_at":"2024-10-30T14:24:46.000Z","dependencies_parsed_at":"2024-05-16T11:24:57.161Z","dependency_job_id":"f44a41ef-fadb-495e-a65d-14703e410c2f","html_url":"https://github.com/cycloidio/tmpltui","commit_stats":null,"previous_names":["cycloidio/tmpltui"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Ftmpltui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Ftmpltui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Ftmpltui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Ftmpltui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cycloidio","download_url":"https://codeload.github.com/cycloidio/tmpltui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233446359,"owners_count":18677488,"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-11-12T09:06:07.897Z","updated_at":"2025-09-18T04:31:11.548Z","avatar_url":"https://github.com/cycloidio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tmpl\n\n\nThis is a small CLI to explore and render tmaplated files.\nYou can either start the TUI with the `tui` subcommand or print to stdout the rendered file with the `render` subcommand.\n\nThe TUI allows you to pick a template file and render it, the original file and the rendered result are shown side by side.\n\nThe `stack_templating.json` file contains the data that is used to render the template, you can change the filename and path with the config flag.\n\nYou can change the template delimiters by specifying in `stack_templating.json` a `left_delimiter` and a `right_delimiter` string.\n\n\n## Example\n\nA simple example configuration is in `example_cycloid.yaml`, you can change the data in `stack_templating.json` and see how the rendering changes.\n\n\n## Installation\n\nPrecompiled binaries for released versions are available in the [release](https://github.com/cycloidio/tmpltui/releases) page on Github.\n\nExample:\n\n```bash\nLATEST_RELEASE=$(curl -s https://api.github.com/repos/cycloidio/tmpltui/releases/latest | jq -r '.tag_name')\nwget https://github.com/cycloidio/tmpltui/releases/download/$LATEST_RELEASE/tmpltui-$LATEST_RELEASE-linux-amd64.tar.gz\ntar xf tmpltui-*.tar.gz\n```\n\n## Getting started\n\nGet the `stack_templating.json` file that contains default Cycloid special variables.\n\n```bash\nwget https://raw.githubusercontent.com/cycloidio/tmpltui/main/stack_templating.json\n```\n\nGet an example of a template.\n\n```bash\nwget https://raw.githubusercontent.com/cycloidio/tmpltui/main/example_cycloid.yaml\n```\n\n```bash\n./tmpl tui\n```\nFrom the prompt, select your `example_cycloid.yaml` template file, press `enter`, and then `f` to display it in full screen.\n\nTo print the rendered file on stdout:\n```bash\ntmpl render -f example_cycloid.yaml\n```\n\n## Usage\n\n```\nusage: tmpl [-h | -help] [-c | -config \u003cpath\u003e] \u003ccommand\u003e [\u003cargs\u003e]\n\noptions:\n\t-h, -help displays this text\n\t-c, -config data and config used to render the template\n\t-t, -type the type of templating, valid values are 'stacks' or 'blueprints'. default 'stacks'\n\ncommands:\n\nrender\n\trenders the template to stdout\n\tusage: tmpl render [-h | -help] [-f | -file \u003cpath\u003e]\n\toptions:\n\t\t-h, -help displays this text\n\t\t-f, -file path to template file\n\t\t\tdefault: .cycloid.yaml\n\ntui\n\tstarts a tui to view the template and the rendered file side by side\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycloidio%2Ftmpltui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcycloidio%2Ftmpltui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycloidio%2Ftmpltui/lists"}