What problem does it solve?
Simplifies rendering ColdBox views and partials while managing data passing, layout control, and view-level caching so developers can compose UI fragments safely and consistently.
Core Features & Use Cases
- View composition: Render full templates and inline partials using renderView() for reusable UI fragments.
- Data binding: Use prc to pass handler data to templates and keep presentation logic out of views.
- Caching: Support per-template fragment caching and per-event/template output caching to improve performance.
- Service rendering & formats: Render views from services (email HTML), select views dynamically based on format or user role, and disable layouts for fragments or streams.
- BoxLang/CFML compatibility: Examples and patterns for BoxLang templates (.bx/.bxm) with CFML compat considerations.
- Real-world example: Build a user profile page that composes a cached sidebar fragment, renders role-specific dashboards, and produces email previews from a renderer service.
Quick Start
Render the users/show view with prc.user populated from userService and enable a 60-second view cache.