Applied templating to pages