basic web server with templates