I can’t find anywhere in the documentation for JavaScript templates information about exporting a data object and a render function, like this:
export const data = {
// ...
};
export function render () {
// ...
}
I only discovered that it was possible to construct JavaScript templates this way when looking at the pagination docs, where the 11ty.js and 11ty.cjs examples show how you can export these directly without wrapping them in a class.