Add the posibility to set the template extension directly in the controller

Maybe is a good option to have the posibility to choose the template where you want to extends from instead of selecting it in the view.

I'm not sure about if the controller is the best site to place this logic because it depends of the template system.