coldbox-view-rendering

Render ColdBox views and partials with prc data binding and caching.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill coldbox-view-rendering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coldbox-view-rendering
Source: https://github.com/ColdBox/skills/tree/main/coldbox/view-rendering
Command: npx skills add https://github.com/ColdBox/skills --skill coldbox-view-rendering

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about coldbox-view-rendering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pass data from a handler to a ColdBox view template?

Pass data from a handler to a ColdBox view by populating the prc (private request collection) structure, which binds handler data directly to your templates and keeps presentation logic separate.

What is the best way to render partials in ColdBox for reusable UI fragments?

Render partials in ColdBox using the renderView() method to compose reusable UI fragments inline within your main templates, ensuring consistent view composition across your application.

Can I cache ColdBox view output to improve template rendering performance?

Cache ColdBox view output by configuring per-template fragment caching and per-event output caching, which significantly improves rendering performance for frequently accessed templates.

How do I generate HTML emails from a ColdBox service without a layout?

Generate HTML emails from ColdBox services by rendering views directly and calling noLayout() to disable the layout, producing clean HTML output suitable for email delivery.

Does ColdBox view rendering support BoxLang templates?

ColdBox view rendering supports BoxLang templates (.bx/.bxm) with CFML compatibility considerations, allowing you to render views seamlessly across both BoxLang and traditional CFML environments.

How do I select different views dynamically based on user roles in ColdBox?

Select different views dynamically in ColdBox by evaluating user roles or request formats within your handler logic, then routing to role-specific dashboard templates during the rendering process.