Live data from Hacker News

Ask HN: In what format do you write your website?

news.ycombinator.com

1–4 of 4 posts

Ask HN: In what format do you write your website?

#1
Up until now, I've used Markdown for my blog posts but recently I've wanted to make more complicated pages. I'm not sure yet what to do, should I write partly in Markdown and partly in HTML? Should I migrate everything to HTML? Or maybe there is something else in the middle?

I was also thinking of having some dynamic pages in my static website so maybe HTML is the only solution?

Re: Ask HN: In what format do you write your website?

#2
In Python. of course. I use good old web.py, because I am lazy and stupid.

"Django lets you write web apps in Django. TurboGears lets you write web apps in TurboGears. Web.py lets you write web apps in Python."

I have (tiny) improvement to the web.py architecture. Using global variable you can add stuff into webpage with "+=".

    class bucket: urls=()
    
    bucket.urls=('/','index')
    class index:
        def GET(self):
    
    bucket.urls+=('/goto:(.*)','goto')
    class goto:
        def GET(self,s):

    bucket.urls+=('/kartta_(.*)','kartta')
    class kartta:
        def GET(self,s):