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 : http://mascarenhas.github.com/2009/10/24/wsapi-nginx-fcgi.html I think it is the best setup.
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
local handler = function(env) local request = wsapi.request.new(env) local GET = wsapi.request.GET local POST = wsapi.request.POST ... end
https://github.com/mpeterv/markdown - most popular and most fully implemented version of Markdown.
in stalled on apr 3, 2018:
luarocks install markdown
https://github.com/bakpakin/luamd - does not include all of Markdown's features.
The MultiMarkdown features that I would use rarely but might be nice of have would include:
- definition lists - i don't know why i have never used this in Textile or in my other web apps that support MultiMarkdown. i guess that I don't truly need it.
- footnotes - another useful format that i rarely use. my biggest usage of footnotes is probably in some pages at babyutoledo.com, which is powered by my Grebe web pub app, and i think that i used Textile to create footnotes. actually, i think that i typed the HTML sup tags or whatever myself because the people who i built the website for didn't want the links to appear that might cause people to bolt to the bottom of the page and lose their place. NOT Linking within a page is a "feature" that some publisher like. The footnote can be displayed with bolding and maybe a different background color, but the reader would have to scroll to the bottom of the page, preferably after reading the page, to see the list of footnotes.
- tables - i rarely have a need to display tabular data. sometimes, i use the HTML pre tags. i could also type the HTML table tags myself.
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 sawv.org, 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.