coldbox-layout-development

Standardize ColdBox UI structure with centralized layout templates and renderView() composition.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ColdBox layout development helps teams create consistent, reusable page skeletons (layouts) to wrap views and standardize chrome like headers, footers, and navigation, reducing duplication and drift.

Core Features & Use Cases

  • Live in layouts/ and wrap rendered views with headers, footers, and navigation, enabling consistent UI scaffolding.
  • Override layouts per handler or per action and compose nested partials with renderView().
  • Support module-specific layouts and multiple named layouts (Main, Admin, Print, Email) for flexible rendering across apps.

Quick Start

Create a new layout under layouts/ (e.g., Main.cfm or Main.bxm) and configure per-handler or per-action layout calls to apply it to your views.

Frequently Asked Questions about coldbox-layout-development

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

FAQPage Schema
How do I create consistent layouts and templates across ColdBox projects?

You create a layout file under the layouts/ directory and configure per-handler or per-action layout calls to wrap rendered views with consistent headers, footers, and navigation.

Can I override the layout for a specific handler or action in ColdBox?

Yes, ColdBox lets you override layouts per handler or per action, enabling flexible rendering while maintaining standard UI scaffolding across the application.

How do I render nested partials inside a ColdBox layout?

You compose nested partials within a ColdBox layout by using the renderView() function, which drives view composition and standardizes the UI structure across pages.

Does ColdBox support module-specific layouts for admin dashboards and public pages?

Yes, ColdBox supports module-specific layouts and multiple named layouts like Main, Admin, Print, and Email to handle flexible rendering across admin dashboards and public pages.

What is the best way to standardize UI chrome and reduce duplication in ColdBox views?

Centralizing layout templates in a layouts/ directory standardizes UI chrome like headers and footers, reducing duplication and drift across ColdBox views.