Pull hints out of templates and set them from code