It's even worse than it appears.
Thursday November 12, 2020; 10:15 AM EST
  • A few days ago a user asked that LO2 support "includes." I did a little investigating, and found that it already supports them. So I thought it might be a good idea to explain what they are and how they work, maybe other people will find it interesting and/or useful. #
  • The idea comes from the C programming language. It had the ability to include one file in another. When you included a file, it was as if its text was present in the file doing the including. The C compiler couldn't tell the difference. #
  • This is what a C include statement looks like. #
    • #include "mycode.c"#
  • In an outliner it works similarly. A node is an include if it has a type attribute with the value include, and a url attribute that points to an OPML file with the outline to be included. #
  • When you expand an include in LO2, the text from the included outline is expanded below the node. You can edit the text, but none of the edits will be saved to the included file. You should think of it as read-only, even though LO2 doesn't enforce that. #
  • Here's an outline that opens in LO2 that illustrates. #

© 1994-2020 Dave Winer.

Last update: Friday November 13, 2020; 10:12 AM EST.

You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)