News for hackers. Stuff that matters.
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by tgv on Sunday December 27, 2020 @03:41AM (#25549752)
That can come in really handy. Does it expose a web-server to other applications? I'm mainly thinking Firefox here (to see if the "swing" is compatible), but there might be other uses for that too.

BTW, I checked with lsof, but there is no listening port, so I guess the answer is no.

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.