.page.tsx files need a generator function as default export to create pages dynamically, and any named export becomes part of each page's data. Then I developed a generic template plugin which expects a Template object at page.data.template, thinking that any specialized template plugin can assign them as needed..page.tsx file like here, it is automatically applied to all these pages.