{"id":18084530,"url":"https://github.com/endel/slim-lightncandy-view","last_synced_at":"2025-04-12T20:09:07.270Z","repository":{"id":29790974,"uuid":"33335180","full_name":"endel/slim-lightncandy-view","owner":"endel","description":"Mustache / Handlebars template engine for Slim Framework 3.x","archived":false,"fork":false,"pushed_at":"2017-05-07T15:49:32.000Z","size":17,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T20:08:46.458Z","etag":null,"topics":["handlebars","mustache","slim"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/endel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-02T22:35:28.000Z","updated_at":"2019-01-22T22:43:26.000Z","dependencies_parsed_at":"2022-09-06T10:51:12.164Z","dependency_job_id":null,"html_url":"https://github.com/endel/slim-lightncandy-view","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/endel%2Fslim-lightncandy-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fslim-lightncandy-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fslim-lightncandy-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fslim-lightncandy-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/slim-lightncandy-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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":["handlebars","mustache","slim"],"created_at":"2024-10-31T15:07:05.219Z","updated_at":"2025-04-12T20:09:07.227Z","avatar_url":"https://github.com/endel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slim Framework Lightncandy View\n\n[![Build Status](https://travis-ci.org/endel/slim-lightncandy-view.svg?branch=master)](https://travis-ci.org/endel/slim-lightncandy-view)\n\nThis is a Slim Framework view helper built on top of the\n[Lightncandy](https://github.com/zordius/lightncandy) templating component,\nwhich is an extremely fast PHP implementation of\n[handlebars](http://handlebarsjs.com/) and\n[mustache](http://mustache.github.io/).\n\nYou can use this component to create and render templates in your Slim Framework application.\n\nRequires Slim 3.x.x\n\n## Install\n\nVia [Composer](https://getcomposer.org/)\n\n```bash\n$ composer require endel/slim-lightncandy-view\n```\n\n## Usage\n\n```php\n// Create Slim app\n$app = new \\Slim\\App();\n\n// Register Lightncandy View helper\n$app-\u003eregister(new \\Slim\\Views\\Lightncandy('path/to/templates', [\n    'helpers' =\u003e array(...)\n    'block_helpers' =\u003e array(...)\n]));\n\n// Define named route\n$app-\u003eget('/hello/{name}', function ($request, $response, $args) {\n    $this['view']-\u003erender('profile', [\n        'name' =\u003e $args['name']\n    ]);\n})-\u003esetName('profile');\n\n// Run app\n$app-\u003erun();\n```\n\n## Examples\n\nTake a look at the [example](example) directory for usage examples.\n\n## Testing\n\n```bash\nphpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n\n## Credits\n\n- [Endel Dreyer](https://github.com/endel)\n- [Zordius](https://github.com/zordius)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fslim-lightncandy-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fslim-lightncandy-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fslim-lightncandy-view/lists"}