I'm looking to get the page content between the header and footer (as Wordpress already does) that includes the template HTML (as this is going to be an AJAX request).
Is there a function that will allow me to do this? The only things I have found so far all relate to just getting the content straight from the database.
It would also be great to get this content via the pages' permalink.