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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Static site generation from mySql?

4 点作者 bigdipper超过 9 年前
Are there any widely used static site generators that connect natively to a DB to pull content into templates? I have a mysql db with structured content that I want to generate HTML from, and the usual suspects (staticgen.com) all expect content in text format.

1 comment

yoloswagins超过 9 年前
I&#x27;ve written a small rails app, and used this rake task[1], to scrape the site, and s3_website[2] to push the site to S3.<p>Many people have recommended middleman[3]. While middleman is more flexible than other static site platforms, it still expects text files.<p>[1] <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;Eunoia&#x2F;15ded6c0dc0d80cb5e0f" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;Eunoia&#x2F;15ded6c0dc0d80cb5e0f</a> [2] <a href="https:&#x2F;&#x2F;github.com&#x2F;laurilehmijoki&#x2F;s3_website" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;laurilehmijoki&#x2F;s3_website</a> [3] <a href="https:&#x2F;&#x2F;middlemanapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;middlemanapp.com&#x2F;</a>
评论 #11092755 未加载