mediamonks / muban

A backend-agnostic framework to enhance server-rendered HTML using a modern webpack development setup.
https://mediamonks.github.io/muban/
39 stars 15 forks source link

Add JavaScript method support for page data. #84

Closed larsvanbraam closed 5 years ago

larsvanbraam commented 5 years ago

In the documentation it states that you can use functions for JavaScript data. This works for components but not on pages.

Works on components but not on pages

module.exports = () => ({
  e1: true,
  e2: 'js function',
  f: 'import!./f.json',
});

Even though you will most likely never use this it is still good for consistency to support objects and functions for both.

larsvanbraam commented 5 years ago

This was fixed in this pull request https://github.com/mediamonks/muban/pull/85!