waaseyaa / ssr
Server-side rendering with Twig templates for Waaseyaa
Requires
- php: >=8.4
- twig/twig: ^3.0
- waaseyaa/access: ^0.1
- waaseyaa/cache: ^0.1
- waaseyaa/config: ^0.1
- waaseyaa/entity: ^0.1
- waaseyaa/field: ^0.1
- waaseyaa/routing: ^0.1
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2026-03-15 16:01:17 UTC
README
Layer 6 — Interfaces
Server-side rendering layer for Waaseyaa applications.
Renders entity and page content as HTML using Twig templates. SsrPageHandler handles path alias resolution, editorial visibility checks, language negotiation, and cache headers. RenderController resolves template candidates (entity-specific, path-based, or fallback). ThemeServiceProvider manages the Twig environment with a theme chain loader. EntityRenderer produces field bags consumed by entity templates.
Twig functions: asset(), env(), config() (when wired), csrf_token() (when User middleware present).
Key classes: SsrPageHandler, RenderController, ThemeServiceProvider, EntityRenderer, WaaseyaaExtension.