Use kind_of? instead of class.include? and rearrange stuff
for {{ item.param }}, allow param to be a function