{"id":16507543,"url":"https://github.com/chmp/template-fragments-rs","last_synced_at":"2025-10-10T01:02:46.678Z","repository":{"id":174463885,"uuid":"556852711","full_name":"chmp/template-fragments-rs","owner":"chmp","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-11T17:33:24.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T15:31:00.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/chmp.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","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-10-24T16:30:09.000Z","updated_at":"2023-08-15T21:34:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccfbbf7a-7aa2-45d4-9050-170667ba298e","html_url":"https://github.com/chmp/template-fragments-rs","commit_stats":null,"previous_names":["chmp/template-fragments-rs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmp%2Ftemplate-fragments-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmp%2Ftemplate-fragments-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmp%2Ftemplate-fragments-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmp%2Ftemplate-fragments-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmp","download_url":"https://codeload.github.com/chmp/template-fragments-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241070387,"owners_count":19904373,"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-10-11T15:28:42.024Z","updated_at":"2025-10-10T01:02:41.635Z","avatar_url":"https://github.com/chmp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `template-fragments` for jinja-like engines\n\nUsage with minijinja (see also [`examples/minijinja.rs`](examples/minijinja.rs)):\n\n```rust\nuse template_fragments::{join_path, split_templates};\n\nlet mut source = minijinja::Source::new();\n\nfor (path, template) in  [\n    (\"index.html\", include_str!(\"templates/index.html\")),\n    (\"users.html\", include_str!(\"templates/users.html\")),\n] {\n    for (fragment_name, template_fragment) in split_templates(template)? {\n        source.add_template(join_path(path, \u0026fragment_name), \u0026template_fragment)?;\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmp%2Ftemplate-fragments-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmp%2Ftemplate-fragments-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmp%2Ftemplate-fragments-rs/lists"}