{"id":15225214,"url":"https://github.com/rgrinberg/ocaml-mustache","last_synced_at":"2025-04-09T19:10:04.701Z","repository":{"id":13472252,"uuid":"16162283","full_name":"rgrinberg/ocaml-mustache","owner":"rgrinberg","description":"mustache.js logic-less templates in OCaml","archived":false,"fork":false,"pushed_at":"2024-05-31T12:47:36.000Z","size":352,"stargazers_count":82,"open_issues_count":3,"forks_count":25,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-09T19:09:55.609Z","etag":null,"topics":["mustache","mustache-templates","ocaml"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/rgrinberg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2014-01-23T04:30:16.000Z","updated_at":"2024-11-20T12:04:11.000Z","dependencies_parsed_at":"2023-11-27T14:47:28.353Z","dependency_job_id":"b709e6f1-27da-4270-97a9-caa2b3188ceb","html_url":"https://github.com/rgrinberg/ocaml-mustache","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrinberg%2Focaml-mustache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrinberg%2Focaml-mustache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrinberg%2Focaml-mustache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrinberg%2Focaml-mustache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgrinberg","download_url":"https://codeload.github.com/rgrinberg/ocaml-mustache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094992,"owners_count":21046770,"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":["mustache","mustache-templates","ocaml"],"created_at":"2024-09-28T18:05:10.045Z","updated_at":"2025-04-09T19:10:04.664Z","avatar_url":"https://github.com/rgrinberg.png","language":"OCaml","funding_links":[],"categories":["Web Development"],"sub_categories":[],"readme":"ocaml-mustache\n==============\n\nmustache.js logic-less templates in OCaml\n\n\nExample usage\n-------------\n\n```ocaml\nlet tmpl =\n  try\n    Mustache.of_string \"Hello {{name}}\\n\\\n                        Mustache is:\\n\\\n                        {{#qualities}}\\\n                        * {{name}}\\n\\\n                        {{/qualities}}\"\n  with Mustache.Parse_error err -\u003e\n    Format.eprintf \"%a@.\"\n      Mustache.pp_template_parse_error err;\n    exit 3\n\nlet json =\n  `O [ \"name\", `String \"OCaml\"\n     ; \"qualities\", `A [ `O [\"name\", `String \"awesome\"]\n                       ; `O [\"name\", `String \"simple\"]\n                       ; `O [\"name\", `String \"fun\"]\n                       ]\n     ]\n\nlet rendered =\n  try Mustache.render tmpl json\n  with Mustache.Render_error err -\u003e\n    Format.eprintf \"%a@.\"\n      Mustache.pp_render_error err;\n    exit 2\n```\n\nSupported template language\n---------------------------\n\nocaml-mustache accepts the whole Mustache template language, except:\n- it does not support setting delimiter tags to something else than '{{' and '}}'.\n- it does not support lambdas inside the provided data\n\nIt is automatically tested against the latest\n[mustache specification testsuite](https://github.com/mustache/spec/tree/v1.1.3).\n\nocaml-mustache also supports template inheritance / partials with parameters,\ntested against the [semi-official specification](https://github.com/mustache/spec/pull/75).\n\nTodo/Wish List\n-----------\n* Support for ropes\n\n\nhttp://mustache.github.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgrinberg%2Focaml-mustache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgrinberg%2Focaml-mustache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgrinberg%2Focaml-mustache/lists"}