I would like to be able to set things like the page title and <meta> description from within HAML “pages” served up by my static page controller.
Is there a good way to do this? Ideally, I see it working something like:
- Name files like
about_us.html.haml.yaml - Use the normal
rendermethod - But now there is a hash of metadata available to my controller and layout templates, which set various headers and elements, respectively.
Thoughts?
(Since no one contributed a full answer)
It seems to work well for me, though it is a touch less powerful than what my question was looking for. Further answers welcome.