ytti/oxidized-web

Referencing vars_map in HAML templates

syrexjohnson opened this issue · 1 comments

Hi,

I'm looking to add a comments/description option to the oxidized-web interface. Based on ytti/oxidized#672 it seems this should be possible through the vars_map.

I've added to the sources block of the config
vars_map:
comment: 4

In the nodes.haml I added an extra column and tried to reference the field with #{node:[comment]}, but it is just blank.

Any ideas?

Apologies if this is an obvious fix, this is the first time I'm using Ruby.

I did figure this out eventually. I had to use #{node[:vars][:comment]}