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.

Compiling a Static Web Site Using the C Preprocessor

15 pointsby davidthibover 9 years ago

3 comments

YngwieMalwareover 9 years ago
Nice piece of history. You can see its age showing:<p>&quot;Rather quickly it was realized that if you want to ensure a reasonable user experience both on desktops and mobiles, there is absolutely no way you can use the same HTML for both sites.&quot;
EvanPlaiceover 9 years ago
Congrats, you&#x27;ve re-discovered the same origin where PHP started nearly 20 years ago.<p>Maybe you could replace the generic c preprocessor dialect with a new domain specific DSL. For instance one where macros can simply be embedded directly into HTML. For instance everything between the &lt;? and ?&gt; is parsed as macros. &#x2F;s
评论 #11048473 未加载
m6w6over 9 years ago
&gt; In fact, almost any kind of text processor can be used to compile web sites in a similar way to what has been described above (for example, m4 ...<p>I thought about m4 all the time while reading through that post...
评论 #11045114 未加载