Client & server now use the same code to render templates