TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby Un1cornover 2 years ago
Up until now, I&#x27;ve used Markdown for my blog posts but recently I&#x27;ve wanted to make more complicated pages. I&#x27;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?<p>I was also thinking of having some dynamic pages in my static website so maybe HTML is the only solution?

3 comments

timonokoover 2 years ago
In Python. of course. I use good old web.py, because I am lazy and stupid.<p>&quot;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.&quot;<p>I have (tiny) improvement to the web.py architecture. Using global variable you can add stuff into webpage with &quot;+=&quot;.<p><pre><code> class bucket: urls=() bucket.urls=(&#x27;&#x2F;&#x27;,&#x27;index&#x27;) class index: def GET(self): bucket.urls+=(&#x27;&#x2F;goto:(.*)&#x27;,&#x27;goto&#x27;) class goto: def GET(self,s): bucket.urls+=(&#x27;&#x2F;kartta_(.*)&#x27;,&#x27;kartta&#x27;) class kartta: def GET(self,s):</code></pre>
alwillisover 2 years ago
Here you go: <a href="https:&#x2F;&#x2F;htmx.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;</a>
beardywover 2 years ago
I think most flavours of markdown support html just by putting it in there.<p>If you want dynamic pages do those in html. No problem.