{"id":18679265,"url":"https://github.com/code-monad/mini-render","last_synced_at":"2025-11-07T13:30:47.870Z","repository":{"id":155222846,"uuid":"294633547","full_name":"code-monad/mini-render","owner":"code-monad","description":"Minimal format utilities. Bundled with a cli tool named `poster`.","archived":false,"fork":false,"pushed_at":"2020-09-11T09:59:40.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-27T21:42:14.611Z","etag":null,"topics":["cpp","minimal","poster","template-engine"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-monad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-09-11T08:06:41.000Z","updated_at":"2020-09-11T09:56:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1f2a8ea-18b6-47ce-96bf-493bd6d24724","html_url":"https://github.com/code-monad/mini-render","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2Fmini-render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2Fmini-render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2Fmini-render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2Fmini-render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-monad","download_url":"https://codeload.github.com/code-monad/mini-render/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239531178,"owners_count":19654433,"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":["cpp","minimal","poster","template-engine"],"created_at":"2024-11-07T09:42:47.581Z","updated_at":"2025-11-07T13:30:47.827Z","avatar_url":"https://github.com/code-monad.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini Render\n\nMinimal format utilities. Bundled with a cli tool named `poster`.\n\n\n## Usage\n\nQucik start: \n\nThe cli tool is a HTTP POST peformer that post rendered data to specified endpoint. Example: \n\n```shell\n./poster -t template.json --endpoint https://postman-echo.com/post SITE_ID=LAS_VEGAS DATE=20200911\n```\n\n### CLI: `poster [options] formats`\n\n#### Positional arguments:\n- `formats`      \tformat options. example: a=1 b=2\n\n#### Optional arguments:\n- `-h` `--help`    \tshows help message and exits\n- `-v` `--version` \tprints version information and exits\n- `-c`           \ttemplate base path. default=templates/\n- `--retry`      \tretry time, default=3\n- `--endpoint`   \tthe endpoint, example: https://example.com/post[Required]\n- `-t`           \tthe template to use. example: example.json[Required]\n\n## Building\n\n### Dependencies\n\n- [nlohmann/json](https://github.com/nlohmann/json.git) as JSON render backend\n- [libfmt](https://github.com/fmtlib/fmt.git) as format backends for rendering templates(only CLI requires)\n- [argparse](https://github.com/p-ranav/argparse.git) as argument parser(only CLI requires)\n- [curlpp](https://github.com/jpbarrette/curlpp.git) a wrapper of libcurl(only CLI requires)\n- [libcurl](https://curl.haxx.se/libcurl/) as http backends(only CLI requires, Can simply installed with the system package manager)\n\nYou can disable building the CLI program `poster` if you just want to use the rendering part API.\n\nTry adding `-DBUILD_CLI=OFF` to your `cmake` command, or set`option(BUILD_CLI OFF)` in your `CMakeLists.txt`.\n\n## Templates \u0026 API\n\nThis repo provides the template rendering interface called `mrender`, if you have a `CMake` managed project, add this repo as subdirectory and link `mrender::core`\n\n```CMake\nadd_subdirectory(${CMAKE_SOURCE_DIR}/3rd_party/mini-render)\ntarget_link_libraries(my_exe PUBLIC mrender::core)\n```\n\nFor more details, please check [Template Details](TEMPLATE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-monad%2Fmini-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-monad%2Fmini-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-monad%2Fmini-render/lists"}