From: Bruno De Fraine <bruno@defraine.net>
To: caml-list@yquem.inria.fr
Subject: Toy implementation of Zope's TAL for OCaml
Date: Thu, 2 Mar 2006 16:04:14 +0100 [thread overview]
Message-ID: <3AC7E3A7-AF6C-433A-916C-D3B884A76B0B@defraine.net> (raw)
Hello,
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:
http://ssel.vub.ac.be/svn-gen/bdefrain/octal/
Best regards,
Bruno De Fraine
reply other threads:[~2006-03-02 15:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AC7E3A7-AF6C-433A-916C-D3B884A76B0B@defraine.net \
--to=bruno@defraine.net \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox