I really like angular's documentation where you have the source and beside it the runtime result. for example https://angularjs.org/#wire-up-a-backend
I am looking for tools to help me get similar results. Write code once, in a maintainable manner (preferably separate files), and have them shown on the page in tabs with the runtime result next to it.