Change template to use extends rather than include