{"id":21288183,"url":"https://github.com/karitham/zemplate","last_synced_at":"2025-03-15T15:27:08.496Z","repository":{"id":124314581,"uuid":"463136189","full_name":"karitham/zemplate","owner":"karitham","description":"Zemplate is a zig templating engine.","archived":false,"fork":false,"pushed_at":"2022-03-02T10:09:19.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T05:29:47.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karitham.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":"2022-02-24T12:16:13.000Z","updated_at":"2022-02-24T12:16:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"2953779d-8da7-4b5a-abba-c1bde3af0e29","html_url":"https://github.com/karitham/zemplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fzemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fzemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fzemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fzemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karitham","download_url":"https://codeload.github.com/karitham/zemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243748528,"owners_count":20341699,"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-21T12:19:09.432Z","updated_at":"2025-03-15T15:27:08.488Z","avatar_url":"https://github.com/karitham.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zemplate\n\nZemplate is a *WIP* zig templating engine.\n\nThe syntax is inspired by text/template from go.\n\n## Examples\n\n### Identifiers\n\n```txt\n{{.foo}}\n```\n\nPulls `foo` from struct and inserts it into the template.\n\nif `foo` is `{ \"foo\": \"bar\" }` the output would be\n\n```txt\nbar\n```\n\nIt also works with nested identifiers, `{{.foo.bar}}` with `{ \"foo\": { \"bar\": \"baz\" } }` would output `baz`.\n\n### Ranges\n\n```txt\n{{ range .foo }}- {{ .bar }}\n{{ end }}\n```\n\nif `foo` is `{\"foo\": [{ \"bar\": \"a\" }, { \"bar\": \"b\" }, { \"bar\": \"c\" }]}` then the output would be\n\n```txt\n- a\n- b\n- c\n\n```\n\n### Conditionals\n\n```txt\n{{ if .foo }}{{ .bar }}{{ end }}\n```\n\nif `foo` is `{\"foo\": true, \"bar\": \"hello world!\"}` then the output would be\n\n```txt\nhello world!\n```\n\n## Notes\n\nI'm open to any and all contributions, be it from code-review, documentation or any form of critique, especially since this is my first zig project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaritham%2Fzemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaritham%2Fzemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaritham%2Fzemplate/lists"}