From: Malcolm Matalka <mmatalka@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] [ANN] Snabela 1.0: Logic-less @templates@
Date: Mon, 15 May 2017 06:03:35 +0000 [thread overview]
Message-ID: <868tlyk66g.fsf@gmail.com> (raw)
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
reply other threads:[~2017-05-15 6:03 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=868tlyk66g.fsf@gmail.com \
--to=mmatalka@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;
as well as URLs for NNTP newsgroup(s).