Add template resolver