caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] Snabela 1.0: Logic-less @templates@
@ 2017-05-15  6:03 Malcolm Matalka
  0 siblings, 0 replies; only message in thread
From: Malcolm Matalka @ 2017-05-15  6:03 UTC (permalink / raw)
  To: caml-list

Snabela 1.0 is released today (thanks to Anil for several back and
forths).

Snabela is a logic-less template system loosely based on Mustache but
attempting to fix some issues I had with Mustache.  To install Snabela
simply do:

opam install snabela

Snabela is a spec, a library, and a CLI tool to evaluate templates.

Some features Snabela has:

- It supports applying arbitrary transformers to the values being
  replaced.  This is useful for ensuring values are escaped,
  representing numeric values as money, applying locales, capitalizing
  text, etc.

- Like Mustache, it has sections for iterating over lists and
  conditionally applying a portion of a template.

- Unlike Mustache, Snabela is strict-by-default, in that a missing
  value, or the wrong type in a test is an error.

- Snabela supports escaping the template code, which is @ by doing @@.

- Snabela is meant to be implementable in a wide array of languages and
  the language is meant to be small.

You can find a gentle introduction to Snabela here:

http://blog.appliedcompscilab.com/snabela-release/index.html

If you run into any issues with Snabela, please don't hesitate to make
an issue here:

https://bitbucket.org/acslab/snabela/issues

Enjoy,
/Malcolm

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

only message in thread, other threads:[~2017-05-15  6:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15  6:03 [Caml-list] [ANN] Snabela 1.0: Logic-less @templates@ Malcolm Matalka

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).