Hacker News new | past | comments | ask | show | jobs | submit login

Seconded. Following React's paradigm of "markup is a function of data", I recently built a new personal site generator where I just swapped JSX for JS template literals. Pages are a set of those functions composed together. Markdown is handled by a library, which (you guessed it) also just generates HTML strings. Works like a charm, incredibly easy to build and use.

Plus, because my rendering is all just pure JS functions, it'd be a flip of a switch to go from static site generator to an Express server that renders pages at request time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: