Extracts head into separate erb file