Make `renderHtml` more idiomatic.

Now the input argument comes last.