templating webpages works