vapor / template-kit

📄 Easy-to-use foundation for building powerful templating languages in Swift.
MIT License
46 stars 17 forks source link

shared metadata #13

Closed tanner0101 closed 4 years ago

tanner0101 commented 6 years ago

Allowed for some shared metadata to be set on a renderer or serializer that can be combined with the incoming view data. This would allow for things like session data to be automatically exposed to leaf so that view data doesn't need to be repetitive.

tonyarnold commented 5 years ago

Could this include request metadata, such as the current URL/path being rendered? That would be super handy for rendering context sensitive items such as active navigation items.

0xTim commented 4 years ago

Closing as template kit is not used with Vapor 4 and new behaviour is in LeafKit - if this is still an issue please create an issue on that repo. Thanks!