[html-template-devel] Additions to html-template

Edi Weitz edi at agharta.de
Wed Oct 4 10:18:42 UTC 2006


Hi!

On Mon, 02 Oct 2006 13:56:07 -0500, Andrew Golding <andy at onshored.com> wrote:

> Recently at Onshore Development, we have started using HTML-TEMPLATE
> to render web-pages in an application we call Woofie, which provides
> an alternative interface to Webcheckout.
>
> While working on html templates for Woofie, I found myself wanting
> some extra abilities currently not available in HTML-TEMPLATE,
> mainly a foreach style loop with the variable which holds the
> current value of the list declared inside the tag, and the ability
> to use certain lisp expressions (format inside tmpl-var's and
> equality comparisons, boolean comparisons (or, and, etc.) inside of
> tmpl-if's).
>
> I would like to see if other developers would find such features
> useful.
>
> [...]
>
> I would appreciate any comments, and I will try to answer any
> questions should there be any (I'm guessing there will).  The code
> can be found at
> http://kfreedom.onshored.com/html-template-additions.lisp , and
> should work with the standard html-template 0.7.0 package.

I understand how this can be useful, but I wouldn't want to add it to
the HTML-TEMPLATE main code base, because I think it doesn't fit with
the original goal (borrowed from the Perl role model) of extreme
simplicity without mixing code and data.  Also, I'm always a bit
skeptical if EVAL is involved.

If you don't want to fork HTML-TEMPLATE, I can offer to add your code
to a "contrib" directoy within the HTML-TEMPLATE distribution to which
you can add the necessary documentation.  Would that be OK for you?

Cheers,
Edi.



More information about the Html-template-devel mailing list