Hy, is there any event-drive/event-based Webframework for Python?
I mean something like NitroGen is for erlang.
You simply get some components you add to a website (like a button) and accociate a python-function to the "onclick"-handler of the button and it gets executed. It should generate all needed html and js core for me (just as nitrogen does) and support all needed components (like span, p, button, textbox, passwordfield...) Like the following code:
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.Button import Button
from pyjamas import Window
def greet(fred):
Window.alert("Hello, AJAX!")
if __name__ == '__main__':
b = Button("Click me", greet)
RootPanel().add(b)
which gets this.
The only framework I found is PyJamas but it is made for Web-Applications (so things like Webmailers) and not for Web-Pages (where google needs content to index and which should be readable without js, with limited functionality). So is there something similar like PyJamas or Nitrogen?
Thanks!