dynamically render YAML Header according to given data