Define page template before processing the request (was: before outputting the request)