Exposed render function in the API