Showing posts with label Mediator. Show all posts
Showing posts with label Mediator. Show all posts

SDL Tridion Lisp Mediator

Long used by Computer Science students and AI researchers, Lisp is one awesome language.

Inspired by Paul Graham's story about Lisp's role Viaweb, an early online store platform, and having recnetly seen Lambda Meme's post on dynamic websites I wanted to wire-up an SDL Tridion Lisp mediator.

I have the basic get-packageitem() and set-stringitem() methods, but haven't implemented Template Building Block (TBB) parameters just yet.

Here's the basic flavor of the parenthetical-and-recursive-syntax that everyone loves from computer science:
(html 
 (head 
   (title (page-title)))
     (body (h1 component-title)
       (div get-componentpresentation(componentpresentation component-id template-id)))))