caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] Pla v1.0 - pxx for making templates
@ 2016-06-21 15:34 Leonardo Laguna Ruiz
  0 siblings, 0 replies; only message in thread
From: Leonardo Laguna Ruiz @ 2016-06-21 15:34 UTC (permalink / raw)
  To: Caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-21 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 15:34 [Caml-list] [ANN] Pla v1.0 - pxx for making templates Leonardo Laguna Ruiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).