deligenius / view-engine

🚀A Template View Engine for Deno frameworks
MIT License
54 stars 15 forks source link

Pass global data to each `render()` call #45

Open binyamin opened 2 years ago

binyamin commented 2 years ago

In other words, I would like to share data between views, by passing it once. I think it should either be an extension of viewConfig, or part of oak's context.state. I prefer the latter suggestion, because context.state is built for this purpose.