Monday, November 08, 2010 at 12:03 AM.
system.verbs.builtins.html.getExtraTemplates
on getExtraTemplates (adrObject) { <<Return a list of named templates to flow a page through. <<Saturday, May 30, 1998 at 4:17:51 PM by PBS local (nomad = adrObject); local (directiveName = "extraTemplates"); if typeOf (nomad^) != tableType { nomad = parentOf (nomad^)}; loop { if nomad == @root or nomad == nil { break}; if defined (nomad^.["#" + directiveName]) { return (list (nomad^.["#" + directiveName]))}; if defined (nomad^.["#prefs"].[directiveName]) { return (list (nomad^.["#prefs"].[directiveName]))}; if defined (nomad^.["#prefs"].["#" + directiveName]) { return (list (nomad^.["#prefs"].["#" + directiveName]))}; nomad = parentOf (nomad^)}; return (false)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.