-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Currently, the skeleton can only render TS templates – which will stay the preferred way of working.
However, certain projects might benefit from other template languages – like Twig or Handlebars – that better connect with the CMS used in a project.
Since we're using express already to render templates "on the server", and @muban/storybook does support server-side template rendering, we could leverage that to basically support any template engine that express supports – and potentially more.
Goals
- Be able to render a page, using multiple nested templates
- Still allow our current "data" setup for pages, but those are passed to templates
- Still allow defining types for the nested template structure, even though it's not used in the TS templates anymore
- Add an endpoint to render individual templates "on the server", and configure storybook to load those (instead of the TS templates currently defined in the stories)
Metadata
Metadata
Assignees
Labels
No labels