Allow Template object to be used directly.