Adding functionality to enable posting to both the HTML and the HTML generating code