New release CL-EMB 0.4.0
CL-EMB is a library to embed Common Lisp and special template
tags into normal text files. Can be used for dynamically
generated HTML pages.
You can download it from
http://common-lisp.net/project/cl-emb/
or install with ASDF-Install.
CL-USER> (asdf:operate 'asdf:load-op :asdf-install)
CL-USER> (asdf-install:install :cl-emb)
Changes:
- Extended way to access environment (the supplied plist)
with template tags.
E.g.: <% @var foo/bar %>
--> Like accessing (GETF (GETF ENV :FOO) :BAR)
When your're inside a nested loop you can access the
elements of the toplevel by starting the parameter with
a slash.
CL-USER> (emb:register-emb "test11" "<% @loop bands %>Band: <% @var band %> (Genre: <% @var /genre %>)<br><% @endloop %>")
#<CL-EMB::EMB-FUNCTION {58ADB12D}>
CL-USER> (emb:execute-emb "test11" :env '(:genre "Rock" :bands ((:band "Queen") (:band "The Rolling Stones") (:band "ZZ Top"))))
"Band: Queen (Genre: Rock)<br>Band: The Rolling Stones (Genre: Rock)<br>Band: ZZ Top (Genre: Rock)<br>"
CL-USER> (emb:register-emb "test12" "<% @repeat /foo/bar/count %>*<% @endrepeat %>")
#<CL-EMB::EMB-FUNCTION {58B7583D}>
CL-USER> (emb:execute-emb "test12" :env '(:foo (:bar (:count 42))))
"******************************************"
_______________________________________________
cl-emb-announce site list
cl-emb-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-emb-announce
New release CL-EMB 0.3.2
CL-EMB is a library to embed Common Lisp and special template
tags into normal text files. Can be used for dynamically
generated HTML pages.
You can download it from
http://common-lisp.net/project/cl-emb/
or install with ASDF-Install.
CL-USER> (asdf:operate 'asdf:load-op :asdf-install)
CL-USER> (asdf-install:install :cl-emb)
Changes:
- Bugfix regarding the template tags @include and @call
The generated code wasn't correct after the API changes
in 0.3.0
_______________________________________________
cl-emb-announce site list
cl-emb-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-emb-announce
Hi Peter!
On Thu, 9 Jun 2005 19:50:38 -0700, Peter Graves <peter(a)armedbear.org> wrote:
> Although in most implementations, (EQ 3 3) => true, this is not
> required by ANSI; for portability, fixnums should be compared with
> EQL. See
> http://www.lispworks.com/documentation/HyperSpec/Body/f_eq.htm (in
> particular, the third example).
>
> With the patch below (against 1.2.7), ABCL from current CVS
> completes the CL-PPCRE test suite with only the expected 3 errors.
Thanks for the patch, I've released a new version including it.
Good to know that CL-PPCRE now works with ABCL - I've added it to the
list of known-to-work implementations.
Cheers,
Edi.
_______________________________________________
cl-ppcre-announce mailing list
cl-ppcre-announce(a)common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cl-ppcre-announce
ChangeLog:
Version 0.2.0
2005-06-09
Added :DO-NOT-CACHE option to CREATE-TEMPLATE-PRINTER
Added clever DEFMETHOD trick by Peter Seibel
Fixed bug in READ-UNTIL which doesn't affect HTML-TEMPLATE
Better example in docs inspired by Bruce R. Lewis' critique on lisp-web
Mention asdf-install in docs
Added hyperdoc support
Added :HTML-TEMPLATE to *FEATURES*
Download:
<http://weitz.de/files/html-template.tar.gz>
And you thought the project was dead, right?
:)
Cheers,
Edi.
_______________________________________________
html-template-announce site list
html-template-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/html-template-announce