[minor] allow render mode to be set, defaults to html