On Fri, Nov 26, 2010 at 05:05:26PM +0000, Jeremy Henty wrote:
I thought it would be fun if I could write a DPI filter as easily as this:
#!/usr/lib/dillo/bin/lua-dpi -- -*- lua -*-
dpi [[ Content-type: text/html
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'> <html> <head><title>Hello World - Lua DPI</title></head> <body> From inside a Dillo DPI, Lua says "Hello World!". </body> </html> ]]
Well, now I can!
http://starurchin.org/dillo/dillo_lua_dpi.png
It's still just a toy at the moment, but I'm pleased with it.
Nice! For a few years I've entertained the idea of having lua scripting in dillo. Not only dpi, but also inside. Looks like dpi filters/servers are a good start. -- Cheers Jorge.-