Join the Pythonic HTML group here to know when the code is up

VoltLick

from simpleMVC import *

class views(Views): #these are views, like templates that contain Pythonic HTML that gets compiled to JS
    def main(doc):
        j('body').append(H1('hi'))
    def mapList(doc):
        j('#mapList').html('')
        doc.body.Add(Ul(id='mapList'))
        for talk in m.talks:
            j('#talkList').append(Li(m.talks[talk].talkTitle))
            #doc.body.talkList.Add(Li(m.talks[talk].talkTitle))

class gets(Gets): #controller, as well as serverside, you can do client code here, converts to JS
    def main(doc):
        def loadJS():
            views.main(doc)
            
            def setupMapModel():
                if window.justLoaded == True:
                    log('setupModel called but should not be - justLoaded set!')
                if ('maps' not in m):
                    m.maps = {}
        addJS(doc,loadJS)
    def test(doc):
        return H1('hi!')

class posts(Posts): 
    pass


if __name__ == "__main__":
    print 'hello from __main__ !!'
    resetGlobalsFuncs()
    views()
    gets()
    posts()
    urls = getUpdatedUrls()
    globals().update(getUpdatedGlobalsFuncs())
    app = web.application(urls, globals(),autoreload=True)
    app.run()
    #hmm
else:
    print 'hello from non main!'
    resetGlobalsFuncs()
    views()
    gets()
    posts()
    urls = getUpdatedUrls()
    globals().update(getUpdatedGlobalsFuncs())
    #print globals()
    #lol#