use div to replace body and generate html segment instead html files