Lua - Part 6

something else to try, maybe:

I have programmed a few websites with Lua. The first one was a raid planner for my World of Warcraft guild (that's often how you start programming in Lua...). I used mod_lua with an alpha version of Apache 2.4 for that. Two others were small contests sites for customers, developed with WSAPI, Nginx, Spawn-fcgi and Orbit. This setup is damn fast, faster than mod_lua and anything else I have seen. The pages would display instantly as if they were in cache ! The experience was very pleasant and Lua makes you quickly productive. But you better be well organized. Lua is missing a lot of batteries when it comes to web development, so you often have to implement your own and it can become messy. So I suggest you plan what you will need before you start. I used my own Lua "ORM" with MySQL and a forked version of Lua Pages for the templates. Have a look here if you want to give Lua+Wsapi+Nginx a try : I think it is the best setup.

Web development

Mar 21, 2018

I cannot get cgilua to work, but wsapi works. I'm slogging through learning how to use it.

I may add this to work with wsapi:

functional programming library


require 'wsapi.request'

local handler = function(env)
  local request =
  local GET = wsapi.request.GET
  local POST = wsapi.request.POST


Markdown - most popular and most fully implemented version of Markdown.

in stalled on apr 3, 2018:

luarocks install markdown - does not include all of Markdown's features.

The MultiMarkdown features that I would use rarely but might be nice of have would include:

A binding to Discount, a fast C implementation of the Markdown text to HTML markup system. Discount passes the Markdown test suite.

this project looks interesting:

this is for C

another one for see. this might be the fastest one available.

this might be the most interesting project but also more than what i need.


it appears that a Textile markup formatter to HTML does not exist in Lua. That would be an interesting project to undertake.

Different versions of the Textile markup language exists, of course. I would build a Lua module that worked similar to the Perl version that I have been using since 2005.

Textile is much bigger in terms of supported features, compared to Markdown. If I was ever serious about making my Lua version of my Perl-based Wren app power, then I would need Textile support. I have thousands of pages that rely on Textile.

I would at least have to create a Textile module that supported 90% of what I do in Textile. I rarely used Textile's support for inline CSS. My Lua Textile module could support the bulk of what I do in Textile.

Some Textile markup syntax.

My Lua version of Wren is called Sora.