chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] ANN: civet 0.1, an X(HT)ML templating library


From: Ivan Raikov
Subject: Re: [Chicken-users] ANN: civet 0.1, an X(HT)ML templating library
Date: Wed, 3 Apr 2013 09:38:41 +0900

Hi Matt,

   No need to be apologetic about it -- I am grateful for your feedback on Ersatz, and I am happy to see yet another Chicken library :-)
Please share with us your experiences of using different templating libraries. Best,

   Ivan
 



On Wed, Apr 3, 2013 at 12:58 AM, Matt Gushee <address@hidden> wrote:
Hello, all--

I am proud (and a bit nervous) to announce the first alpha release of
a new templating library called Civet. Though I expect it will mainly
be useful for web development, it can potentially be used for any type
of XML document. By the same token, it does not, and probably never
will, support non-XML HTML formats.

[oh, and by the way, Ivan Raikov, if you're reading this, I am not
entirely abandoning Ersatz--I'll probably still use it for some
smaller projects, including the site I've already developed with it]

Civet features include:

  * Insertion of dynamic content via 'variables'

  * Template inheritance & block structure similar to that found in
     Ersatz or Jinja2.

  * 'If' with optional 'else' and 'for' loops.

  * Uses XML files as input, but automatically stores them in
     SXML form to avoid the need for parsing on every run.

Although the Civet package includes all the basic ingredients for an
egg, I am not submitting it to the egg directory just yet. The reason
for this is that, while most of the above-mentioned features are
working to some extent (i.e., I have written unit tests for them, and
they all pass, at least on my system), early informal testing with
more complex inputs indicates that Civet will not yet work in the real
world. I'm hoping that if a few people are interested in this, we
might be able to discuss what's going wrong and arrive at a solution.

Code and documentation are available at my GitHub repo. You can clone the repo:

    git clone https://github.com/mgushee/civet.git

Or download a tarball:

    https://github.com/mgushee/civet/archive/release-0.1.tar.gz

I believe I have documented most of what you need to know to try
Civet. Both the API and the template vocabulary are described in the
README.md file included in the distribution. There are also a couple
of example templates in the examples/ directory.

Hope you like it!

--
Matt Gushee

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]