At 8/13/12 03:58 PM, NinoGrounds wrote:
Nothing interesting this days around here.
I'm working on something that (in my opinion) is pretty interesting. :)
It's a web server written in Python, based on Flask.
This is an example implementation:
from sys import argv
from spiderweb import Spiderweb, Template
httpd = Spiderweb(argv)
template = Template("site/templates")
return "hello world"
That will return the text "hello world" to the following URIs:
As they are defined as routes using the httpd.route function decorator.
You can also use regular expressions for your routes:
return "Viewing a numeric folder!"
That will match URIs such as:
It's still very premature, but progress is being made.
Current source code is available here: