gomplate
$ gomplate Community Low Riskgomplate renders Go text/template files (-f) or inline templates (-i) backed by rich datasources (-d alias=file.yaml, JSON, CSV, TOML, HTTP, Vault, AWS SSM) and 200+ helper functions (data.ToJSON, coll.JQ, crypto).
brew install gomplate Renders structured templates from YAML/JSON/CSV datasources deterministically in one static Go binary (gomplate -d cfg=data.yaml -f tmpl.gotmpl).
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Fully non-interactive with -f, -i inline templates, -d datasources, -o output, and built-in data.ToJSON / data.ToYAML functions.
- Supports
-d,-f,-i,-o, anddata.ToJSON
Writes to stdout by default; local file writes require -o or --output-dir, though exec functions exist in advanced plugin/template modes.
- Stdout default; explicit
-o/--output-dirrequired for writes
Single static Go binary across macOS, Linux, and Windows via Homebrew, go install, Docker, and GitHub Releases.
- Static Go binary (
brew install gomplate)
Combines JSON, YAML, CSV, TOML, env, and Vault/SSM datasources with 200+ template functions in one binary.
- Multi-format datasource ingestion and Go template rendering
Actively maintained by Dave Henderson (hairyhenderson/gomplate v4) under MIT license.
- Active
hairyhenderson/gomplaterepository
Well-organized documentation site at docs.gomplate.ca covering CLI flags, datasources, and every function namespace.
- Comprehensive docs at docs.gomplate.ca
Security, Auth & Guardrails
None for local datasources; optional Vault/AWS/Consul datasources read VAULT_TOKEN, AWS_*, or standard provider env vars.
MIT open-source CLI; completely free.
# gomplate Agent Rules - Preview rendered output on stdout first (omit `-o` / `--output-dir`) before writing files. - Use explicit `-d alias=path` datasources and avoid HTTP/Vault datasource URLs unless explicitly intended.
Agent-Ready Command Recipes
Safe Read-Only Queries
gomplate -d cfg=data.yaml -f tmpl.gotmpl
Loads data.yaml under alias cfg and prints the rendered template to stdout without writing files.
gomplate -d data=users.csv -i '{{ (ds "data") | data.ToJSON }}' Parses users.csv inline via -i and emits JSON using data.ToJSON.
Controlled Writes & Previews
gomplate -d cfg=data.yaml -f config.tmpl -o config.json
Writes the rendered output to config.json via -o (--out).
Strengths for Agents
- + Reads JSON, YAML, CSV, and TOML datasources natively via
-d alias=file. - + Single static Go binary with
-iinline evaluation anddata.ToJSONformatting. - + Clean stdout-first behavior unless
-oor--output-diris passed.
Caveats & Pitfalls
- ! Go
text/templatewhitespace trimming ({{- ... -}}) anddssyntax require careful quoting in shell commands. - ! Datasource URLs (
vault://,aws+sm://,https://) can trigger external network/credential lookups if used in templates.