Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Toy implementation of Zope's TAL for OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-03-02 (15:04)
From: Bruno De Fraine <bruno@d...>
Subject: Toy implementation of Zope's TAL for OCaml

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