Add renderHtml() method to the view objects