[Caml-list] Toy implementation of Zope's TAL for OCaml

Skip to first unread message

Bruno De Fraine

Mar 2, 2006, 10:08:17 AM3/2/06
to caml...@yquem.inria.fr

I made a toy implementation of Zope's TAL (Template Attribute
Language) for OCaml, conveniently named 'Octal'. It is built on top
of Camlp4 and Xml-Light. The purpose of TAL is to have a template
that is a valid XML or HTML document that already renders like the
resulting document.

The approach employed by Octal is to preprocess the TAL template and
produce an OCaml function that takes the template parameters and that
returns the generated XML document. As such, the template is
precompiled into an evaluated form and template parameters can be
type-checked by OCaml. Octal is realized as a Camlp4 quotation.

Source code and a README with more information is available from:

Best regards,
Bruno De Fraine

Caml-list mailing list. Subscription management:
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply all
Reply to author
0 new messages