From: Leonardo Laguna Ruiz <modlfo@gmail.com>
To: Caml-list <caml-list@inria.fr>
Subject: [Caml-list] [ANN] Pla v1.0 - pxx for making templates
Date: Tue, 21 Jun 2016 18:34:22 +0300 [thread overview]
Message-ID: <1C5A59FD-6565-4A5C-97CA-547A2103AB12@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 756 bytes --]
Pla is a simple library and ppx syntax extension to create composable templates based on verbatim strings.
You can find the code and a quick description of it’s features
https://modlfo.github.io/pla/ <https://modlfo.github.io/pla/>
In a nutshell, the ppx transforms quoted strings in the form {pla| …. |pla} to templates. Inside templates it’s possible to add markers whose contents is replaced by other templates, for example:
let name = Pla.string “pla” ;;
let t = {pla|The library name is <#name#>|pla} ;;
will produce “The library name is Pla”
When compiled, the markers are type-safe.
Pla does not provide advanced pretty-printing features but it produces fast functions to create large amounts of text.
Leonardo
[-- Attachment #2: Type: text/html, Size: 1324 bytes --]
reply other threads:[~2016-06-21 15:34 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=1C5A59FD-6565-4A5C-97CA-547A2103AB12@gmail.com \
--to=modlfo@gmail.com \
--cc=caml-list@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