A CLISP macro that generates XML tags and their attributes programmatically, allowing dynamic HTML/XML/SVG generation from a Lisp program.
(load "generator.lisp")
(tag div (class 'home)
(tag p (class 'text id 'name) (princ 'William))
(tag div (class 'empty)))
Output:
<div class="HOME">
<p class="TEXT" id="NAME">WILLIAM</p>
<div class="EMPTY"></div>
</div>
Place the file and src folder in your project directory, and load "main.lisp" from CLISP interpreter or from your CLISP script.
- Add a set of further svg tags that can be generated.
- Implemement a v-dom and do a diff of the scene graph to do selective rendering.