Lua - Part 6

something else to try, maybe:
https://stackoverflow.com/questions/8565989/how-to-serve-lua-pages-scripts-the-simple-pain-free-way
http://lua.2524044.n2.nabble.com/ANN-Luvit-Lua-UV-Jit-NodeJS-re-implemented-in-Lua-td7048032.html
https://luvit.io
https://github.com/luvit/luvit


https://github.com/civetweb/civetweb

https://realtimelogic.com/blog/2012/08/Lua-FastTracks-Embedded-Web-Application-Development

https://stackoverflow.com/questions/2046572/has-anyone-used-lua-to-build-a-web-application

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.


https://www.embedded.com/design/programming-languages-and-tools/4426420/Get-on-the-Internet-of-Things-fast-with-an-embedded-Web-app-server--Part-2-

http://mascarenhas.github.io/2009/10/24/wsapi-nginx-fcgi.html

http://lua-users.org/wiki/LuaWsapi

http://uwsgi-docs.readthedocs.io/en/latest/Lua.html

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:

https://github.com/keplerproject/mk/tree/master/samples
https://luarocks.org/modules/mascarenhas/mk

http://keplerproject.github.io/wsapi/libraries.html

functional programming library
https://github.com/luafun/luafun

https://pragprog.com/magazines/2013-05/a-functional-introduction-to-lua

wsapi
https://stackoverflow.com/questions/4917345/post-data-in-lua

require 'wsapi.request'

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

  ...
end

https://stackoverflow.com/questions/41855842/converting-utf-8-string-to-ascii-in-pure-lua

http://lua-users.org/wiki/LuaUnicode

https://stackoverflow.com/questions/24190608/lua-string-byte-for-non-ascii-characters

https://github.com/Stepets/utf8.lua

https://github.com/TiagoDanin/htmlEntities-for-lua

https://en.wikipedia.org/wiki/ASCII

https://gist.github.com/akavel/2038192


http://azuliadesigns.com/html-character-codes-ascii-entity-unicode-symbols/

https://www.w3schools.com/charsets/ref_utf_punctuation.asp

https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

Markdown

https://github.com/mpeterv/markdown - most popular and most fully implemented version of Markdown.

https://luarocks.org/modules/mpeterv/markdown

in stalled on apr 3, 2018:

luarocks install markdown

http://search.cpan.org/~bobtfish/Text-Markdown-1.000031/lib/Text/Markdown.pm


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:

http://asbradbury.org/projects/lua-discount/

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:
http://jgm.github.io/lunamark/

this is for C
https://github.com/jgm/peg-markdown

another one for see. this might be the fastest one available.
https://github.com/vmg/sundown

this might be the most interesting project but also more than what i need.
https://github.com/jgm/lcmark

https://github.com/jgm/pandoc

http://commonmark.org

Textile

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.
https://gist.github.com/rbnrivera/1536449

My Lua version of Wren is called Sora.