Layouts with variables

Hi,

I would like to render a menu thx to a YAML file inside on of my layouts. So far, the only hack I have found is to YAML.load_file inside an ERB in the layout.

I don't really like this, and there must be a better way to do so. I just don't know how :wink:

Could anyone help me on this ?

Thx