Built your site with files bundled as components.
- Version: 0.1 alpha
- Requirement: Kirby 3
- Changelog
- Disclaimer
- Donate
Place files in template or snippet components.
site/components/
--about/
blueprint.yml
component.php
controller.php
--home/
--projects/
menu1/
menu2/
header/
footer/
autoload.php
component.php
image.jpg
style.scss
--
prefixed folders are template components.- Non prefixed folders are snippet components.
- You can place snippet components inside template components like
snippet(--my-template/my-snippet)
The supported files will be used by the plugin. Additionally you can add your own files like images, css and js.
These files are allowed in a template component.
autoload.php
- Will be loaded instantly when found.component.php
- The template file.controller.php
- The template controller file.
autoload.php
- Will be loaded instantly when found.component.php
- The snippet file.
return [
'jenstornell.components.roots' => $roots
];
You can send a path to your components, or an array with multiple paths.
By default it will use __DIR__ . '/../components'
.