I\'ve got a fairly ajax heavy site and some 3k html formatted pages are inserted into the DOM from ajax requests.
What I have been doing is taking the html responses
You should check out Pure, a templating tool to generate HTML from JSON data.