{"id":20537039,"url":"https://github.com/cvik/emo","last_synced_at":"2025-04-14T07:22:22.488Z","repository":{"id":18265559,"uuid":"21425884","full_name":"cvik/emo","owner":"cvik","description":"Erlang Mustache rendering library","archived":false,"fork":false,"pushed_at":"2017-09-29T05:27:08.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:05:01.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/cvik.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}},"created_at":"2014-07-02T13:48:44.000Z","updated_at":"2020-05-13T21:13:59.000Z","dependencies_parsed_at":"2022-08-27T05:11:17.365Z","dependency_job_id":null,"html_url":"https://github.com/cvik/emo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Femo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Femo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Femo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Femo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvik","download_url":"https://codeload.github.com/cvik/emo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837324,"owners_count":21169410,"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-16T00:38:43.051Z","updated_at":"2025-04-14T07:22:22.447Z","avatar_url":"https://github.com/cvik.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Emo - Erlang Mustache rendering library\n\nSimple Mustache rendering app with mostly basic functionality implemented.\nDoesnt yet support tripple curlies(or \u0026-tags), partials or set delimiters.\n\n\nLatest Tag: 0.3.0\n\n## Exports\n\n```erlang\n-spec emo:render(Template::string(), Context::[{atom(), term()}]) -\u003e iolist().\n```\n\n## Example usage\n\n```erlang\n1\u003e l(emo).\nok\n2\u003e Context = [{type, \"Fruits\"},\n              {inventory, [[{name, \"apple\"}, {amount, \"12\"}],\n                           [{name, \"banana\"}, {amount, \"3\"}, {pear, false}]]}].\n[{type,\"Fruits\"},\n {inventory,[[{name,\"apple\"},{amount,\"12\"}],\n              [{name,\"banana\"},{amount,\"3\"},{pear,false}]]}]\n3\u003e Template = \"\u003ch4\u003e{{type}}\u003c/h4\u003e\u003cul\u003e{{#inventory}}\u003cli\u003e{{name}} - {{amount}}\u003c/li\u003e{{/inventory}}\u003c/ul\u003e{{not_shown}}{{^show_on_undef}}Default!{{/show_on_undef}}\".\n\"\u003ch4\u003e{{type}}\u003c/h4\u003e\u003cul\u003e{{#inventory}}\u003cli\u003e{{name}} - {{amount}}\u003c/li\u003e{{/inventory}}\u003c/ul\u003e{{not_shown}}{{^show_on_undef}}Default!{{/show_on_undef}}\"\n4\u003e iolist_to_binary(emo:render(Template, Context)).\n\u003c\u003c\"\u003ch4\u003eFruits\u003c/h4\u003e\u003cul\u003e\u003cli\u003eapple - 12\u003c/li\u003e\u003cli\u003ebanana - 3\u003c/li\u003e\u003c/ul\u003eDefault!\"\u003e\u003e\n```\n\n## License\n\nApache license version 2.0. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvik%2Femo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvik%2Femo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvik%2Femo/lists"}