On Fri, Nov 6, 2009 at 9:06 AM, steve donovan <steve.j.dono...@gmail.com> wrote: > On Fri, Nov 6, 2009 at 9:33 AM, Bertrand Mansion <l...@mamasam.net> wrote: >> <select multiple="multiple" name="values[]"> > > You can do this with Cosmo: > > cosmo.fill('$join{$dog} cat', > { > dog={'one','two'}, > join=function(args) return table.concat(args[1],',') end > } > ) > > ==> > one,two cat > > The 'gotcha' is that any such function is passed its arguments as a table.
Sorry, I don't understand what you are talking about nor what Cosmo has to do with wsapi. My point was that I think it would be handy if wsapi could allow different request parsers. For example, I don't think ?foo[bar]=1 would be converted to a table. What about ?foo.bar=1, ?foo[] = 1 or even ?foo[1]=1 I'd like to have a way to change the default behaviour. It might already be possible though, I didn't check... -- Bertrand Mansion Mamasam _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/