TE
TechEcho
AccueilTop 24hRécentsMeilleursQuestionsPrésentationsEmplois
GitHubTwitter
Accueil

TechEcho

Une plateforme d'actualités technologiques construite avec Next.js, fournissant des nouvelles et discussions technologiques mondiales.

GitHubTwitter

Accueil

AccueilRécentsMeilleursQuestionsPrésentationsEmplois

Ressources

HackerNews APIHackerNews OriginalNext.js

© 2025 TechEcho. Tous droits réservés.

Using Ed(1) as My Static Site Generator

95 pointspar BoingBoomTschakil y a 5 jours

10 comments

snackbrokenil y a 5 jours
&gt; But then, ed is so simple and more or less standard<p>More or less? ED IS THE STANDARD TEXT EDITOR! [1]<p>[1] <a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;fun&#x2F;jokes&#x2F;ed-msg.html" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;fun&#x2F;jokes&#x2F;ed-msg.html</a>
评论 #44146175 未加载
评论 #44146617 未加载
评论 #44145614 未加载
评论 #44150339 未加载
评论 #44146801 未加载
评论 #44150816 未加载
BoingBoomTschakil y a 5 jours
The quite cool journey of a hacker trying to find his favourite SSG itch scratching position.<p>What inspired me to post it is that I cobbled a fun HTML preprocessor using cpp to someone today: <a href="https:&#x2F;&#x2F;git.sr.ht&#x2F;~q3cpma&#x2F;html-cpp" rel="nofollow">https:&#x2F;&#x2F;git.sr.ht&#x2F;~q3cpma&#x2F;html-cpp</a> (I use a Common Lisp contraption for myself).
tonymetil y a 4 jours
I love how much utility 60+ year old Unix commands have. Very powerful, requiring only a few kB of ram, and even 20+ years later, I’m still discovering new utilities.<p>I did something similar for <a href="https:&#x2F;&#x2F;isgithubipv6.web.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;isgithubipv6.web.app&#x2F;</a> . Most static site generators are huge ( I was aiming for &lt; 5mb docker container) . I went with `envsubst` , env vars and a simple HTML template.
xelxebaril y a 5 jours
Nice! Another tantalizing rabbit hole.<p>I go full in on ed sporadically. It requires a bit of a brain rewire, but tye UX is closer to pencil and paper, which is hard to beat for encouraging deeper thought, IMHO.<p>Also, check out edbrowse for a line-oriented browser:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Edbrowse" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Edbrowse</a><p>It&#x27;s developed by a blind coder and has a nice core following.
评论 #44161846 未加载
WD-42il y a 5 jours
Fantastic. The Unix hackers are alive and well. Keep it real.
评论 #44145454 未加载
评论 #44161858 未加载
sgtil y a 5 jours
I once used m4 to generate my blog. Worked like a charm!
评论 #44147001 未加载
评论 #44146630 未加载
susamil y a 5 jours
Impressive! Only three leaps away from using butterflies as static site generator!
kevin_thibedeauil y a 5 jours
&gt; It has no file inclusion, for one. So C Preprocessor&#x27;s #include is no longer accessible. I manage without it<p>m4 is always there with better macros than CPP.
评论 #44161878 未加载
regusil y a 5 jours
I really like the idea of ed. I tried using it recently but having to constantly reprint the block of code you are editing was really tedious.
评论 #44146540 未加载
djoldmanil y a 5 jours
&gt; Should You Use ed As Site Generator?<p>&gt; No, not at all.<p>Well, it (totxt.ed) looks pretty inscrutable to me:<p><pre><code> H !# Include proxy title !# Insert fallback values ?&lt;head&gt;?a &lt;SUBTITLE&gt;&lt;&#x2F;SUBTITLE&gt; &lt;DESCRIPTION&gt;&lt;&#x2F;DESCRIPTION&gt; &lt;IMAGE&gt;&lt;&#x2F;IMAGE&gt; &lt;IMAGE_ALT&gt;&lt;&#x2F;IMAGE_ALT&gt; . w !# Include the template files via script g&#x2F;\(&lt;!--\)*[&lt;#]include \(file=\)*&quot;*\([^&quot;&gt;]*\)&quot;* *-*\&#x2F;*&gt;*&#x2F;s&#x2F;&#x2F;&amp;\ \&#x2F;[&lt;#]include\&#x2F;d\ -1r \3\ wq\ &#x2F; g&#x2F;[&lt;#]include &quot;*\([^&quot;&gt;]*\)&quot;*\&#x2F;*&gt;*&#x2F;d\ .,+3w !ed % E !# Repeat the second time for recursive includes g&#x2F;\(&lt;!--\)*[&lt;#]include \(file=\)*&quot;*\([^&quot;&gt;]*\)&quot;* *-*\&#x2F;*&gt;*&#x2F;s&#x2F;&#x2F;&amp;\ \&#x2F;[&lt;#]include\&#x2F;d\ -1r \3\ wq\ &#x2F;</code></pre>
评论 #44147427 未加载
评论 #44146990 未加载
评论 #44161883 未加载