dravencms / frontend
DravenCMS Frontend
Package info
Type:dravencms-package
pkg:composer/dravencms/frontend
Requires
- dravencms/application: >=0.0.1
- nette/di: ^3.0.9
README
Base frontend layer for DravenCMS applications. It supplies frontend presenter conventions, CSS and JavaScript loader components, and production/development error presenters.
Features
Dravencms\FrontModule\BasePresenter.- Shared frontend layout lookup.
- Named
frontendWebLoader CSS and JavaScript components. - Dedicated 403, 404, 405, 410, and 500 responses.
ITemplatecontract for frontend template providers.
Installation
composer require dravencms/frontend
The bundled configuration registers the frontend extension and error presenters and creates empty frontend WebLoader groups. Application and feature-package configuration can append files to those groups.
Usage
Extend the frontend base presenter from application presenters:
use Dravencms\FrontModule\BasePresenter; final class HomepagePresenter extends BasePresenter { }
The base presenter exposes {control css} and {control js} for the named frontend bundles and follows DravenCMS conventions when locating layouts.
Customize error templates in the application only when project-specific output is required; otherwise the package templates provide safe defaults for both development and production failures.
License
This package is licensed under the LGPL-3.0 license.