marko/admin-panel-latte
Latte templates for marko/admin-panel --- provides the login, dashboard, layout, and partial views rendered by the Latte engine. Installing this package is all that is needed to supply admin panel templates when using marko/view-latte; no additional configuration is required.
Installation
Section titled “Installation”composer require marko/admin-panel-latteRequires marko/admin-panel and marko/view-latte.
Install the package alongside marko/admin-panel and marko/view-latte:
composer require marko/admin-panel marko/admin-panel-latte marko/view-latteTemplates are discovered automatically via the extra.marko.templates_for declaration in the package’s composer.json. The admin-panel:: template namespace resolves to the views in this package --- for example, admin-panel::dashboard/index renders resources/views/dashboard/index.latte.
Provided Templates
Section titled “Provided Templates”| Template name | File |
|---|---|
admin-panel::auth/login | resources/views/auth/login.latte |
admin-panel::layout/base | resources/views/layout/base.latte |
admin-panel::dashboard/index | resources/views/dashboard/index.latte |
admin-panel::partials/sidebar | resources/views/partials/sidebar.latte |
admin-panel::partials/flash | resources/views/partials/flash.latte |
Overriding Templates
Section titled “Overriding Templates”Override any template by placing a file with the same path under your own module’s resources/views/admin-panel/ directory:
mymodule/ resources/ views/ admin-panel/ dashboard/ index.latte # Overrides the default dashboardRelated Packages
Section titled “Related Packages”marko/admin-panel--- admin panel logic and routesmarko/admin-panel-twig--- Twig template alternativemarko/view-latte--- Latte rendering engine