added hook example for choosing a template variant