The answer is a little mixed here, and also depends on what you mean by "visualize". There are a few ways to do this. I'll sketch them out, and if any of them sound like they will suit you, I could fill in some of the details. Someone else may know more, too.
For displaying your file, by which I mean displaying it as it would be displayed in a browser:
1. You could use the viewrendered3 plugin. This is still under development, but the current version will do the job pretty well. However, it does not currently understand <<named sections>>. It just takes all the nodes in a subtree in order and renders them within Leo in a browser pane. You would not be able to put any non-html/javascript content into the file (like Leo directives).
At the moment, I believe that the plugin will only display the contents of a single node, not a whole subtree, but I could extend it to display an entire subtree (i.e., a file).
(If there were some interest, I could enhance the plugin to collect all the javascript in the subtree and send it to the browser. Then you could include any amount of commentary, and other non-html text, in the outline).
2. You could create a button that sends the contents of the file to the system browser. There has to be a python script behind the button, but it would be pretty simple, and we could work it out with you.
For displaying your file, by which I mean displaying the code (and possible non-html commentary, etc) in a more readable way, but not loading or executing it in a browser, the viewrendered3 plugin does a good job.
If you decide you don't need to visualized, render, or display the html file "in" Leo, then just start your file with @language javascript, and Leo will colorize it for you. You can still run the file in a browser as you would usually do pre-Leo, or by using a button (#2 above). You can use the full range of @others and <<named sections>>.
I have attached screen captures showing the VR3 plugin used in both ways.