<story><title>Writing HTML by hand is easier than debugging your static site generator</title><url>https://logicgrimoire.wordpress.com/2024/07/01/writing-html-by-hand-is-easier-than-debugging-your-static-site-generator/</url></story><parent_chain><item><author>mdavidn</author><text>You&amp;#x27;re looking for &amp;quot;server side includes.&amp;quot; Most HTTP web servers provide such a feature, as do many CDNs. Here&amp;#x27;s the Nginx module&amp;#x27;s documentation:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;nginx.org&amp;#x2F;en&amp;#x2F;docs&amp;#x2F;http&amp;#x2F;ngx_http_ssi_module.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;nginx.org&amp;#x2F;en&amp;#x2F;docs&amp;#x2F;http&amp;#x2F;ngx_http_ssi_module.html&lt;/a&gt;</text></item><item><author>numlocked</author><text>I &lt;i&gt;almost&lt;/i&gt; agree. The thing that keeps me coming back to static site generators is HTML partials. Having a header.html file that defines my navigation, that I can edit once and include everywhere, is why I pay the complexity tax.&lt;p&gt;And since I&amp;#x27;m already there, I do also like scss + file watching &amp;#x2F; hot reloading. Though would happily live without it, if there was a &amp;#x27;native&amp;#x27; solution to e.g.&lt;p&gt;&lt;pre&gt;&lt;code&gt;   &amp;lt;html&amp;gt;
   &amp;lt;% include &amp;#x27;.&amp;#x2F;header.html&amp;#x27;&amp;gt;
   &amp;lt;body&amp;gt;
   ...
   &amp;lt;&amp;#x2F;body&amp;gt;
   &amp;lt;% include &amp;#x27;.&amp;#x2F;footer.html&amp;#x27;&amp;gt;
   &amp;lt;&amp;#x2F;html&amp;gt;&lt;/code&gt;&lt;/pre&gt;</text></item></parent_chain><comment><author>nox101</author><text>The only difference between a service side include and a static site generator include is whether the include happens build time or serve time (and cached). Any issues with including will be exactly the same regardless of where this happens.</text></comment>
<story><title>Writing HTML by hand is easier than debugging your static site generator</title><url>https://logicgrimoire.wordpress.com/2024/07/01/writing-html-by-hand-is-easier-than-debugging-your-static-site-generator/</url></story><parent_chain><item><author>mdavidn</author><text>You&amp;#x27;re looking for &amp;quot;server side includes.&amp;quot; Most HTTP web servers provide such a feature, as do many CDNs. Here&amp;#x27;s the Nginx module&amp;#x27;s documentation:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;nginx.org&amp;#x2F;en&amp;#x2F;docs&amp;#x2F;http&amp;#x2F;ngx_http_ssi_module.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;nginx.org&amp;#x2F;en&amp;#x2F;docs&amp;#x2F;http&amp;#x2F;ngx_http_ssi_module.html&lt;/a&gt;</text></item><item><author>numlocked</author><text>I &lt;i&gt;almost&lt;/i&gt; agree. The thing that keeps me coming back to static site generators is HTML partials. Having a header.html file that defines my navigation, that I can edit once and include everywhere, is why I pay the complexity tax.&lt;p&gt;And since I&amp;#x27;m already there, I do also like scss + file watching &amp;#x2F; hot reloading. Though would happily live without it, if there was a &amp;#x27;native&amp;#x27; solution to e.g.&lt;p&gt;&lt;pre&gt;&lt;code&gt;   &amp;lt;html&amp;gt;
   &amp;lt;% include &amp;#x27;.&amp;#x2F;header.html&amp;#x27;&amp;gt;
   &amp;lt;body&amp;gt;
   ...
   &amp;lt;&amp;#x2F;body&amp;gt;
   &amp;lt;% include &amp;#x27;.&amp;#x2F;footer.html&amp;#x27;&amp;gt;
   &amp;lt;&amp;#x2F;html&amp;gt;&lt;/code&gt;&lt;/pre&gt;</text></item></parent_chain><comment><author>andai</author><text>I used this all the time with PHP back in the day.&lt;p&gt;&lt;pre&gt;&lt;code&gt;    include(&amp;quot;header.html&amp;quot;);&lt;/code&gt;&lt;/pre&gt;</text></comment>