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.

Show HN: A dead simple static site generator – just two template tags

94 pointsby colevscodeabout 11 years ago

15 comments

kurrentabout 11 years ago
I&#x27;m not being facetious, but this &quot;yet another static site generator&quot; joins the list with 230+ other generators.<p>(see <a href="http://staticsitegenerators.net/" rel="nofollow">http:&#x2F;&#x2F;staticsitegenerators.net&#x2F;</a>)<p>Why do we need another one?
评论 #7429890 未加载
评论 #7429905 未加载
评论 #7431498 未加载
bryanlarsenabout 11 years ago
You could use server side includes instead, which have been a feature of web servers for about 20 years now...
评论 #7429805 未加载
评论 #7429808 未加载
steve_barhamabout 11 years ago
Not Invented Here syndrome, at all? Sure, I understand wanting to use Python for templates rather than relying on an external application. But why ignore the many, many existing template libraries? Some of those libraries have solved problems which you don&#x27;t realise you have yet.<p>Case in point, are you planning to support this &#x27;dead simple&#x27; template language for users of your hosting site? If so, what happens if I try to include something outside the site root, in a Dropbox area which I control? <a href="https://github.com/braceio/tags/blob/master/tags/tags.py#L13" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;braceio&#x2F;tags&#x2F;blob&#x2F;master&#x2F;tags&#x2F;tags.py#L13</a>
评论 #7429921 未加载
laurent123456about 11 years ago
I&#x27;ve been using PHP to generate static HTML pages. It&#x27;s usually as simple as `php somepage.php &gt; somepage.html` and you have all the advantages of a full featured language.
tghwabout 11 years ago
Don&#x27;t use easy_install.<p><a href="http://stackoverflow.com/a/3220572/2363" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;3220572&#x2F;2363</a>
评论 #7430657 未加载
评论 #7430548 未加载
moondevabout 11 years ago
Reminded me of my go-to include method from back in the day: <a href="http://www.moock.org/webdesign/javascript/client-side-include/" rel="nofollow">http:&#x2F;&#x2F;www.moock.org&#x2F;webdesign&#x2F;javascript&#x2F;client-side-includ...</a>
评论 #7431065 未加载
newaccountfoolabout 11 years ago
What&#x27;s the reason for this? Why don&#x27;t you just build the website using standard HTML? Genuine question.
评论 #7429658 未加载
评论 #7429674 未加载
评论 #7429702 未加载
评论 #7429662 未加载
dangayleabout 11 years ago
I like this very much. I used to do very similar with PHP, but I&#x27;m now a Python dev. Sometimes, just sometimes, writing plain old simple html is easier, and having a basic include would save a ton of heartache for maintenance.
epsylonabout 11 years ago
I&#x27;m willing to bet that it took more time to write and setup the homepage than to write the generator itself.
Kiroabout 11 years ago
I haven&#x27;t read everything but why isn&#x27;t the source like 10 lines if that&#x27;s all it does?
评论 #7429848 未加载
评论 #7430709 未加载
workhere-ioabout 11 years ago
Is there any way you could make the watch feature not dependant on watchdog? The watchdog installation fails on pip on Mac. I then had to install Homebrew just to be able to install libyaml, which then meant I could install watchdog.
评论 #7432257 未加载
rooodiniabout 11 years ago
I actually found the “Highlight this” example at the top a bit confusing. Could you write “Display this” instead? Or give a better example to demonstrate conditionals?
LouisSayersabout 11 years ago
I like it! Great concept, thanks for simplifying something that should be dead easy and simple. A ruby port would be nice.
评论 #7431694 未加载
dolphensteinabout 11 years ago
Awesome! Just what I needed this morning.
workhere-ioabout 11 years ago
Very nice and easy to use.