{"id":17166668,"url":"https://github.com/willf/stencil","last_synced_at":"2025-10-03T23:59:57.757Z","repository":{"id":176561833,"uuid":"657443339","full_name":"willf/stencil","owner":"willf","description":"Stencil renders templated text with variables","archived":false,"fork":false,"pushed_at":"2023-06-26T18:48:30.000Z","size":4435,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-13T12:12:43.156Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willf.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}},"created_at":"2023-06-23T04:34:52.000Z","updated_at":"2023-06-23T05:31:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0b9c7d7-4b98-4ce3-bb51-8331d7f009cb","html_url":"https://github.com/willf/stencil","commit_stats":null,"previous_names":["willf/stencil"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/willf/stencil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fstencil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fstencil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fstencil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fstencil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/stencil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fstencil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278245393,"owners_count":25955016,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-14T23:06:20.415Z","updated_at":"2025-10-03T23:59:57.721Z","avatar_url":"https://github.com/willf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stencil\nStencil renders templated text with variables. It supports:\n\n- [Go templates](https://golang.org/pkg/text/template/)\n- [Mustache templates](https://mustache.github.io/)\n- Colon templates: `:name` -\u003e `Bob` renders the string \"Hi, :name!\" as \"Hi, Bob!\"\n\n```\n❯ ./stencil --help\nUsage: stencil [OPTIONS]\nStencil command: Convert templated text using variables\n\nOptions:\n  -f --file \u003cfile\u003e   path to a template file (default: stdin)\n  -g --go            use Go template syntax\n  -m --mustache      use Mustache template syntax (default)\n  -c --colon         use colon template syntax\n  -h --help          print this help message\nOther flags are passed as key=value pairs for use in the template\n\nStencil tries to be forgiving about whether keys get dashes or values have a =\n\n❯ stencil -f examples/template.mustache name=Bob age=35\nName: |Bob|\nAge: |35|\n\n\u003e stencil -f examples/template.mustache name=\"Bob Smith\" age=35 --mustache\nName: |Bob Smith|\nAge: |35|\n\n❯ stencil -f examples/template.mustache name=Bob age=35 --mustache\nName: |Bob|\nAge: |35|\n\n❯ stencil -f examples/template.gotemplate name=Bob age=35 -g\nName: |Bob|\nAge: |35|\n\n❯ ./stencil -f examples/template.colon name=Bob age=35 --colon\nName: |Bob|\nAge: |35|\n\n```\n\n## Install\n\n```\ngh repo clone willf/stencil\ncd stencil\ngo install ./cmd/stencil\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fstencil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Fstencil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fstencil/lists"}