{"id":16666501,"url":"https://github.com/patricknelson/stache","last_synced_at":"2026-04-21T22:01:45.424Z","repository":{"id":17975184,"uuid":"20975282","full_name":"patricknelson/stache","owner":"patricknelson","description":"Bastardized version of \"Mustache\" without any of the feature richness.","archived":false,"fork":false,"pushed_at":"2014-06-18T19:56:30.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T16:32:17.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"SpecialCyCi/AndroidResideMenu","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patricknelson.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-06-18T19:31:59.000Z","updated_at":"2014-06-18T19:56:31.000Z","dependencies_parsed_at":"2022-07-26T20:19:02.901Z","dependency_job_id":null,"html_url":"https://github.com/patricknelson/stache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fstache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fstache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fstache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fstache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patricknelson","download_url":"https://codeload.github.com/patricknelson/stache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243310428,"owners_count":20270788,"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-12T11:11:10.977Z","updated_at":"2025-12-28T22:35:25.454Z","avatar_url":"https://github.com/patricknelson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stache #\n\nBastardized version of [Mustache](http://mustache.github.io/) without any of the feature richness.\n\n# Usage #\n\nTaken from [the fully featured](https://github.com/bobthecow/mustache.php) PHP implementation of Mustache, the syntax is very similar and limited to one main method:\n\n```php\n\u003c?php\n$s = new Stache;\necho $s-\u003erender('Hello {{planet}}', array('planet' =\u003e 'World!')); // \"Hello World!\"\n```\n\nYou can also define values using the separate `-\u003eassign()` method, like this:\n\n```php\n// Typical associative array.\n$s-\u003eassign(array(\n\t\"foo\" =\u003e \"oof\",\n\t\"bar\" =\u003e \"rab\",\n));\n\n// Direct assignment.\n$s-\u003eassign(\"baz\", \"zab\");\n\n// Define a template and render a result.\n$template = '\n\u003cpre\u003e\nfoo: {{foo}}\nbar: {{bar}}\nbaz: {{baz}}\n\u003c/pre\u003e\n';\necho $s-\u003erender($template);\n```\n\nOutputs:\n\n\tfoo: oof\n\tbar: rab\n\tbaz: zab\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknelson%2Fstache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatricknelson%2Fstache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknelson%2Fstache/lists"}