๐ CPGH Pages
Pages in CPGH are defined as .Page files with sections, layouts, authentication, and caching.
{`// _Main.Page - CPGH Page Definition CPGH::PAGE "Main" { PROTOCOL: DO://Page/Main TITLE: "Dashboard" LAYOUT: _Landing.Page AUTH: true CACHE: 300.0 SECTION "header" { RENDER: _Imports.Page::Header DATA: } SECTION "content" { RENDER: _Imports.Page::Content DATA: } SECTION "footer" { RENDER: _Imports.Page::Footer DATA: } }`} ๐ Authentication Set AUTH: true to require login
Set CACHE: 300.0 for 5 minute TTL
Use LAYOUT: _Landing.Page for templates