Skip to content

shaaza/xml-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Description

A CLISP macro that generates XML tags and their attributes programmatically, allowing dynamic HTML/XML/SVG generation from a Lisp program.

Example

(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>

Installation

Place the file and src folder in your project directory, and load "main.lisp" from CLISP interpreter or from your CLISP script.

Todo

  • 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.

About

A CLISP macro that generates XML tags and their attributes programmatically, allowing dynamic HTML/XML/SVG generation from a Lisp program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published