{"id":20028828,"url":"https://github.com/phase2/grav-plugin-twig-namespaces","last_synced_at":"2025-06-15T04:37:27.382Z","repository":{"id":137098535,"uuid":"124596307","full_name":"phase2/grav-plugin-twig-namespaces","owner":"phase2","description":"A Grav CMS plugin for custom Twig namespaces","archived":false,"fork":false,"pushed_at":"2018-03-24T18:24:48.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-12T17:36:14.725Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phase2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-09T21:40:56.000Z","updated_at":"2019-09-28T17:57:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"036bec44-0135-4a39-b840-4492e7d7a69b","html_url":"https://github.com/phase2/grav-plugin-twig-namespaces","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/phase2%2Fgrav-plugin-twig-namespaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgrav-plugin-twig-namespaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgrav-plugin-twig-namespaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgrav-plugin-twig-namespaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/grav-plugin-twig-namespaces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241460048,"owners_count":19966518,"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-13T09:16:42.278Z","updated_at":"2025-03-02T04:45:36.715Z","avatar_url":"https://github.com/phase2.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twig Namespaces Plugin\n\nThis plugin adds Twig Namespacing capabilities to [Grav CMS](http://github.com/getgrav/grav). This means that you can write things like `{% include \"@atoms/button\" %}` and Grav will know where to look.\n\n## Installation\n\nTo install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `twig-namespaces`. You can find these files on [GitHub](https://github.com/phase2/grav-plugin-twig-namespaces).\n\nYou should now have all the plugin files under\n\n    /your/site/grav/user/plugins/twig-namespaces\n\t\n\u003e NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav) and the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) to operate.\n\n## Configuration\n\nBefore configuring this plugin, you should copy the `user/plugins/twig-namespaces/twig-namespaces.yaml` to `user/config/plugins/twig-namespaces.yaml` and only edit that copy.\n\nHere is the default configuration and an explanation of available options:\n\n```yaml\nenabled: true\nnamespaces:  // Array of namespaces\n  test:  // Namespace to be used in twig files as `@test`.\n    paths:  // Array of paths \n      - path to folder containing twig files to be included in namespace\n      - another path be included for namespaces\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fgrav-plugin-twig-namespaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fgrav-plugin-twig-namespaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fgrav-plugin-twig-namespaces/lists"}