Support templates in YAML format - but don't advertise it

It's a bit rough but keen to hear feedback if you're interested in taking the patch