<body> tag is opened and closed in body templates rather than head and foot