Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lev.web] LevWeb Planning #57

Open
kristate opened this issue Sep 14, 2012 · 8 comments
Open

[lev.web] LevWeb Planning #57

kristate opened this issue Sep 14, 2012 · 8 comments
Milestone

Comments

@kristate
Copy link
Member

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

@dvv
Copy link
Contributor

dvv commented Sep 14, 2012

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.

@kristate
Copy link
Member Author

@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.

@dvv
Copy link
Contributor

dvv commented Sep 14, 2012

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.

@kristate
Copy link
Member Author

@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

@dvv
Copy link
Contributor

dvv commented Sep 14, 2012

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

@kristate
Copy link
Member Author

Start of a rendering/template engine in 239386a

@pcdinh
Copy link

pcdinh commented Mar 27, 2013

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?

@VaiN474
Copy link

VaiN474 commented Jul 21, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants