You can currently add global data in Rend constructor.
new Rend({ layout, data: { x: y }})
But it would be nice to also allow to add data in middleware and things for a request.
eg:
c.data.rend = globals.rend.with({ new: 'data' })
Which would clone data and things while reusing some of the more expensive items like template cache.
Then you can of course add data when rendering too:
return c.data. rend.html({ other: 'data' })
You can currently add global data in Rend constructor.
But it would be nice to also allow to add data in middleware and things for a request.
eg:
Which would clone data and things while reusing some of the more expensive items like template cache.
Then you can of course add data when rendering too: