hello. some updates to my last email:
- in fact i found out that my problem was that the xavante.filehandler served the index.lp file, not cgilua, so i fixed that by setting "matches =" in the config file correctly. now i run into more problems: first problem was that i always got /usr/share/lua/5.1/xavante/cgiluahandler.lua:35: bad argument #1 to 'ipairs' (table expected, got nil) when the cgihandler opened a file, i found this link here https://dev.mobileread.com/svn/luailiad/trunk/test/xiliad/xiliad which implies that if i want to run the cgiluahandler without the complete kepler environment i need to define RINGS_CGILUA_GLOBALS (and thats what i try to do, running xavante + cgilua without all the rest of kepler) the changelog of cgilua says this is an "optional table" but it seems necessary ;) however i can't find any hint in the documentation how to configure RINGS_CGILUA_GLOBALS correctly to work. when i set RINGS_CGILUA_GLOBALS as an empty table, i get a new error: /usr/share/lua/5.1/wsapi/ringer.lua:115: /usr/share/lua/5.1/luarocks/path.lua:218: assertion failed! stack traceback: [C]: in function 'assert' /usr/share/lua/5.1/luarocks/path.lua:218: in function 'path_to_module' /usr/share/lua/5.1/luarocks/loader.lua:142: in function 'filter_module_name' /usr/share/lua/5.1/luarocks/loader.lua:119: in function (tail call): ? /usr/share/lua/5.1/luarocks/loader.lua:177: in function [C]: in function 'require' /usr/share/lua/5.1/wsapi/common.lua:9: in main chunk [C]: in function 'require' [string " if (select(2,...)) then..."]:17: in main chunk which looks like cgilua is looking for some files from the luarocks path. so im happy to receive any hint where to go from here, and again, excuse my ignorance, but to be fair i couldnt find any manual on the web which explains the setup from the start. startx On Sun, 22 Nov 2009 13:35:53 +0000 startx <[email protected]> wrote: > hello. > > i started to play around with xavante/cgilua and it seems > that i do not get the examples from the website to work. > i use xavante and cgilua as it comes with debian testing (squeeze) > > xavante starts fine, cgilua is loaded with require, no errors or > anything. and here is my very simple example page index.lp : > > <html> > > <?lua > greeting = 'Hello World!' > ?> > > <head> > <title><%= greeting %></title> > </head> > <body> > <strong><?lua= greeting ?></strong> > </body> > </html> > > however, while xavante serves the page ok, the lua chunk seems > simply to be ignored and the only output it a plain: > > <?lua= greeting ?> > > as this all looks pretty straight forward i think its just my > ignorance, so im happy to get advise where to go from here. > > startx > _______________________________________________ Kepler-Project mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
