On Wed, 1 Sep 2004 21:48:21 +0200, Stefan Scholl <stesch(a)no-spoon.de> wrote:
> Haven't read the RFC, but cgi.rb (CGI library of Ruby) decodes names
> and values.
>
> key, value = pairs.split('=',2).collect{|v| CGI::unescape(v) }
>
>
> CGI.pm (CGI library of Perl), too.
>
> $param = unescape($param);
> $value = unescape($value);
OK, thanks for the info.
So I think we should follow their lead. I've released a new version:
Version 0.2.11
2004-09-02
FORM-URL-ENCODED-LIST-TO-ALIST now decodes names and values
Note that this change affects the names of GET and POST parameters as
well as the names of cookies.
Cheers,
Edi.
_______________________________________________
tbnl-announce site list
tbnl-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/tbnl-announce
I've added a module to typeset Common Lisp code with some syntax coloring to
cl-typesetting.
The syntax coloring is too simple to be 100% accurate: Improvements
welcomed!
(Multiple lines strings are not handled for instance)
As an obvious example, I used this code to typeset itself ;-)
The result is here: http://www.fractalconcept.com/pprint.pdf
This module + cl-typegraph are the base layers for the automatic generation
of documentation for Common Lisp code.
The idea is to use XRefs tools like Albert or the ones from the CMU lisp
repository to extract and generate some interesting documentation from the
analysis of a bunch of source files.
(Examples of graphs are on page 3 of the cl-typesetting example. The first
one is a class hierarchy.
See: http://www.fractalconcept.com/ex.pdf)
The cl-typesetting repository is here:
http://www.fractalconcept.com:8000/public/open-source/
And the latest tarball is here:
http://www.fractalconcept.com/download/cl-typesetting-current.tgz
Marc
_______________________________________________
cl-typesetting-announce site list
cl-typesetting-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-typesetting-announce
Hi!
Get the newest release from:
<http://weitz.de/files/tbnl.tgz>.
Here's the Changelog entry:
Version 0.2.10
2004-08-28
Allow non-strings to be cookie values (bug caught by Zach Beane)
Edi.
_______________________________________________
tbnl-announce site list
tbnl-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/tbnl-announce
New release 0.0.3
You can download it from
http://www.common-lisp.net/project/cl-emb/
or install with ASDF-Install.
> (require :asdf-install)
> (asdf-install:install :cl-emb)
Changes:
- Comments. Everything within <%# ... #%> will be removed/ignored.
(With "<%" and "%>" representing the current start and end
marker.)
- Escaping. New special variable *ESCAPE-TYPE* and a modifier for
@var. Supported escaping: raw, xml (aka html), uri (aka url or
url-encode)
Example:
CL-USER> (emb:register-emb "test5"
"<a href=\"http://somewhere.test/test.cgi?<% @var foo -escape uri %>\"><% @var foo %></a>")
#<CL-EMB::EMB-FUNCTION {9FBF5F1}>
CL-USER> (let ((emb:*escape-type* :html))
(emb:execute-emb "test5" '(:foo "10 > 7")))
"<a href=\"http://somewhere.test/test.cgi?10+%3E+7\">10 > 7</a>"
_______________________________________________
cl-emb-announce site list
cl-emb-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-emb-announce
mod_lisp version 2.38 is on the mod_lisp repository:
http://www.fractalconcept.com:8000/public/open-source/
Version 2.38
New "server-baseversion" and "modlisp-version" headers
(Edi Weitz)
Version 2.37
Create new socket (instead of reusing) if IP/port combo has changed
(Edi Weitz)
Thanks again to Edi :)
Marc
_______________________________________________
mod-lisp-announce site list
mod-lisp-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/mod-lisp-announce
New release 0.0.2
You can download it direct from
http://www.common-lisp.net/project/cl-emb/
or install it with ASDF-Install.
Changes:
Added special variables *emb-start-marker* and *emb-end-marker*
This change was inspired by the patches Peter Minten sent me.
Thanks!
You can now use other start and end markers instead of "<%" and
"%>", which are the default.
Examble:
CL-USER> (let ((emb:*emb-start-marker* "<?emb")
(emb:*emb-end-marker* "?>"))
(emb:register-emb "marker-test"
"42 + 42 = <?emb= (+ 42 42) ?>"))
#<CL-EMB::EMB-FUNCTION {97BEFD9}>
CL-USER> (emb:execute-emb "marker-test")
"42 + 42 = 84"
_______________________________________________
cl-emb-announce site list
cl-emb-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-emb-announce
Hi!
A new release is available from
<http://weitz.de/files/tbnl.tgz>.
Here's the relevant part from the changelog:
Version 0.2.6
2004-07-24
Make CREATE-STATIC-FILE-DISPATCHER-AND-HANDLER thread-safe (caught by Jeff Caldwell)
Added support for 'If-Modified-Since' request headers (provided by Stefan Scholl)
Enjoy,
Edi
_______________________________________________
tbnl-announce site list
tbnl-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/tbnl-announce