Re:Show HN: CodeSwing – A CodePen-like interactive playgroun...
by lostintangent on Sunday December 27, 2020 @11:35AM
(#25552130)
Hey! Yeah currently, the swing simply generates a static HTML file, composed of the various files in the swing, and then renders that in the preview window. As you type in the editor, it tries to “intelligently” update that specific file, and re-render the preview window.
Starting a server that serves the static HTML wouldn’t be too difficult, so I might think that through a bit. As you said, that would enable validation with Firefox, which would be really cool.
BTW, I checked with lsof, but there is no listening port, so I guess the answer is no.