CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
400 stars 29 forks source link

Raxx.View add a way to have page metadata in the layout #190

Open CrowdHailer opened 4 years ago

CrowdHailer commented 4 years ago

For example a nav element that wants the current page link highlighted. It would be nice if where you say use MyLayout you could set this metadata.

I have been solving this with var page = Keyword.get(bindings(), :page)