That moment when Hello World worked
Wed, Apr 29, 2015 at 5:37 PM by Dave Winer ☮.
  • Well, this has been a long time coming. I want to make this new outliner a really excellent tool for code-writing.
  • Largely because I want the code to run on the outliner itself. We had this working very nicely in Frontier. This will allow me to do a lot more of my work in this space. This is good. ;-)
  • So I added a new nodetype -- code -- and when it sees a node with that type, it renders it as JavaScript, not HTML. It's very lightweight. Doesn't do any interpretation, just writes the characters out, nicely indented with tabs.
  • Here's the file containing Hello World.
  • This is the one-liner I ran in the browser, console:
  • runScriptFromUrl ("")
  • And here's a screen shot of the result.
  • Key point, those files can be included in generated web pages with <script> tags. And we can certainly edit templates in the outliner. So we are on the way to having it all. ;-)