{"id":17948602,"url":"https://github.com/mbaraa/ctemplate","last_synced_at":"2025-08-27T03:14:33.896Z","repository":{"id":259663131,"uuid":"879147361","full_name":"mbaraa/ctemplate","owner":"mbaraa","description":"A revived fork of the one and only ctemplate with extra functionalities.","archived":false,"fork":false,"pushed_at":"2024-11-09T20:29:18.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T04:17:02.679Z","etag":null,"topics":["c","html","template"],"latest_commit_sha":null,"homepage":"https://ctemplate.mbaraa.xyz/","language":"C","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/mbaraa.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":"2024-10-27T05:40:36.000Z","updated_at":"2024-11-07T06:39:36.000Z","dependencies_parsed_at":"2024-12-16T17:45:27.022Z","dependency_job_id":"f59ebe1f-1723-4ed9-bbf5-61ba14f4c541","html_url":"https://github.com/mbaraa/ctemplate","commit_stats":null,"previous_names":["mbaraa/ctemplate"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbaraa%2Fctemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbaraa%2Fctemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbaraa%2Fctemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbaraa%2Fctemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbaraa","download_url":"https://codeload.github.com/mbaraa/ctemplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247026185,"owners_count":20871336,"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":["c","html","template"],"created_at":"2024-10-29T09:07:32.605Z","updated_at":"2025-04-03T15:26:18.978Z","avatar_url":"https://github.com/mbaraa.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctemplate\n\nA revived fork of the one and only [ctemplate](https://libctemplate.sourceforge.net) with extra functionalities.\n\n# Installation:\n\n```bash\ngit clone https://github.com/mbaraa/ctemplate\ncd ctemplate\nmake\nsudo make install\n```\n\n# Usage:\n\n1. Include the header\n\n```c\n#include\u003cctemplate/ctemplate.h\u003e\n```\n\n2. Go nuts.\n\n# Available functions:\n\n- Old\n\n  - `TMPL_write()` expands and outputs a template.\n  - `TMPL_add_var()` adds simple variables to a variable list.\n  - `TMPL_add_varlist()` adds a variable list to a loop variable.\n  - `TMPL_add_loop()` adds a loop variable to a variable list.\n  - `TMPL_add_fmt()` adds a function to a format function list.\n  - `TMPL_free_varlist()` frees memory used by a variable list.\n  - `TMPL_free_fmtlist()` frees memory used by a format function list.\n\n- New\n  - `TMPL_make_var_list()` returns a TMPL_varlist from the given char\\* arguments.\n  - `TMPL_write_to_buffer()` same as `TMPL_write` but using a bytes buffer instead of a file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbaraa%2Fctemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbaraa%2Fctemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbaraa%2Fctemplate/lists"}