Load External Content

It is possible to extract parts of your page into external HTML files and load them into your current page. Just use source: 'someURL'.
You can register a callback on sourceLoaded that will be triggered after the content is loaded. This can be useful for performing custom post-processing.

<div data-bind="page: {
      id: 'load_external_content',
      sourceLoaded: externalContentLoaded,
      source: 'load_external_content.html .content'}">
    ...
</div>
        
var externalContentLoaded = function(page) {
    prettyPrint();
};