{"id":24764069,"url":"https://github.com/stillat/antlers-layouts","last_synced_at":"2026-04-03T00:00:18.138Z","repository":{"id":181800304,"uuid":"626103447","full_name":"Stillat/antlers-layouts","owner":"Stillat","description":"Antlers Layouts is a Statamic addon that allows you to extend arbitrary layouts and pass data to your template's layouts.","archived":false,"fork":false,"pushed_at":"2024-05-11T19:56:49.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main-v2","last_synced_at":"2025-10-17T08:58:37.308Z","etag":null,"topics":["laravel","statamic"],"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/Stillat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"JohnathonKoster"}},"created_at":"2023-04-10T20:01:33.000Z","updated_at":"2025-04-27T06:48:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"82e79254-6c70-4218-a02e-7cd08e9468be","html_url":"https://github.com/Stillat/antlers-layouts","commit_stats":null,"previous_names":["stillat/antlers-layouts"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Stillat/antlers-layouts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fantlers-layouts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fantlers-layouts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fantlers-layouts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fantlers-layouts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stillat","download_url":"https://codeload.github.com/Stillat/antlers-layouts/tar.gz/refs/heads/main-v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fantlers-layouts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31319715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T23:57:25.032Z","status":"ssl_error","status_checked_at":"2026-04-02T23:57:06.281Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel","statamic"],"created_at":"2025-01-28T21:32:11.726Z","updated_at":"2026-04-03T00:00:18.117Z","avatar_url":"https://github.com/Stillat.png","language":"PHP","funding_links":["https://github.com/sponsors/JohnathonKoster"],"categories":[],"sub_categories":[],"readme":"# Antlers Layouts\n\n\u003e Antlers Layouts is a Statamic addon that allows you to extend arbitrary layouts and pass data to your template's layouts.\n\n## Features\n\nThis addon:\n\n* Allows you to extend arbitrary layouts from within your Antlers templates;\n* Pass data to layouts from templates\n\n## How to Install\n\nYou can install this addon by running the following command from your project root:\n\n``` bash\ncomposer require stillat/antlers-layouts\n```\n\n## How to Use\n\nThe Antlers Layouts addon provides a single `layout` Tag that allows you to extend arbitrary layouts and pass data to your template's layout.\nThe recommended way to organize multiple layouts within your Statamic project is to create a new folder at the following locations to contain your extra layout templates:\n\n```\nresources/views/layouts/\n```\n\nAssuming we had a file named `resources/views/layouts/custom-layout.antlers.html`, we could use dynamically swap to this layout by including the following Antlers tag anywhere in our template:\n\n```antlers\n{{ layout:layouts/custom-layout }}\n```\n\nBy including this Tag, Antlers will now utilize the `resources/views/layouts/custom-layout.antlers.html` file as our layout instead of the normal `resources/views/layout.antlers.html` file.\n\nWe can use the `layout:share` Tag to pass data to our Antlers layout files:\n\n```antlers\n{{ layout:share variable_one=\"Value One\"\n                variable_two=\"Another value\"\n                :variable_three=\"title\" /}}\n```\n\n\u003e It is important to note that the `layout:share` Tag will only pass custom variables to the standard `layout.antlers.html` template file, and custom layouts located within the `resources/views/layouts/` folder.\n\nOur custom variables created using the `layout:share` Tag will now be available to us in our layout file like any other variable:\n\n```antlers\n{{# Inside the layout template. #}}\n\n{{ variable_one }}\n{{ variable_two }}\n{{ variable_three }}\n```\n\n## License\n\nAntlers Layouts is free software released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillat%2Fantlers-layouts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstillat%2Fantlers-layouts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillat%2Fantlers-layouts/lists"}