For partial updates of your web page, just stream HTML to the client.