Click here to show or hide the menubar.

Worldoutline macros


Up until now, the only macros that could be used in worldoutline pages were in worldOutline.root, and therefore couldn't be added to or modified by users.

Generally I like to go slowly on this kind of stuff, because it's hard to back out of it later. Now the software is pretty mature, and it makes sense to allow macros that run from config.worldOutline.

Where your macros go

So there's a new table at config.worldOutline.macros. Any scripts in that table can be called from your pages. You can put tables of scripts in the macros table as we do in worldOutlineSuite.macros.

Overriding

Your macros override the built-in ones. So if you want to change the definition of one of our macros, you can do that, simply by placing one with teh same name in config.worldoutline.macros. You can even call the original one from the new one, so you can modify its result without completely replicating the functionality.

Parts

worldOutlineSuite.init

worldOutlineSuite.processMacros


Posted on Saturday, December 22, 2012 at 9:33 PM by Dave Winer.