Re:Why Lisp?
by charlieflowers on Friday May 08, 2015 @08:46AM
(#9511271)
There's an answer there too. In Lisp, it is possible to have local functions. In other words, you're defining a function, and inside it you have a couple of functions that are local to the containing function.
That's one way for "term" and the other items to have different definitions.
There are probably other even better ways to do it.
Hmm... it might work if I use some sort of global parameter: I first "execute the data" (damn!) with the output type set to HTML and then do it again with an output type of JSON.