TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 Un1corn超过 2 年前
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 条评论

timonoko超过 2 年前
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>
alwillis超过 2 年前
Here you go: <a href="https:&#x2F;&#x2F;htmx.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;</a>
beardyw超过 2 年前
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.