[lev.web] LevWeb Planning
kristate opened this issue · comments
We need a robust web framework for lev
.
Some of this framework is already in-place with lib/web.lua [1][2] although it would be nice to have WebSocket support, a nice template engine and some path routing code.
This Issue will track progress with regard to the LevWeb milestone.
[1] https://github.com/connectFree/lev/blob/master/lib/lev/web.lua
[2] https://github.com/connectFree/lev/blob/master/examples/lev/server-http-module.lua
i've done websocket ages ago. it provides for both hixie76 and hybi10 (C helper) protocols. it is done as a stack-style middleware and should be a good point for starters.
in app i collected some useful layers also.
kernel is a nice and very powerful templating initiative by @creationix.
@dvv these are great -- I think that we can immediately fit websocket into lev.
I am curious about how we can fit app
into lev. I would like to change the name of the module from app
to webapp
if that is fine with you.
kernel
should also be easy to integrate into lev.
webapp is certainly ok. of particular importance are the router and RESTish middleware. these form the basis of a framework. i also have static which served until now luvit site.
also, we should somehow start site served by lev per se, to show and see goods and bads of design/interfaces etc., imho.
kernel seems to be neutral to anything as it is simple Lua string/closure stuff.
@dvv Understood -- I will setup a server to demo lev soon.
I am trying to find a good balance between Python's WSGI and Node.JS
i see. take, that being exposed either via *sgi or connect-style, the worker of any middleware remains the same, imho. that is, if we extract these workere into a lib, we can expose them then even via both interfaces.
also, please consider starting a github wiki page on middleware design, just like on fs design, so that we could collect pros and contras. tia
Start of a rendering/template engine in 239386a
Any update on this ticket? I found this project when searching Google for nginx and lua integration to implement a upload image server. It looks like that lev can be used to do such things without requiring powerful hardware. Is that correct?
Stumbled across this in a similar search as pcdinh. I've been looking for an active project that might be the successor to the now-abandoned CGILua. I'm curious why you chose not to follow the usual templating syntax similar to that of PHP <? (chunk) ?>
. The current examples don't seem natural to me.
Are there any plans to resume this project or is it dead as well?