←back to thread

123 points jonfelsar | 4 comments | | HN request time: 0.223s | source
Show context
GavinAnderegg ◴[] No.45188482[source]
Over the last few years, I've found that most sites clients want can be built with static site generators and JavaScript. PHP is also great and easily hosted! But most times when there's a sprinkling of dynamism needed, it's OK if its happens at build/run time rather than when the page is rendered on a seever. This leads to faster page load and less to worry about security-wise. No shade! I've just been finding this has lead to good outcomes for me.
replies(2): >>45189141 #>>45191088 #
1. scotty79 ◴[] No.45189141[source]
Your static site generator can generate PHP instead of html and have some server-side dynamism sprinkled in your mostly static site, same way that generating JS can sprinkle some client side dynamism.
replies(2): >>45189558 #>>45194377 #
2. LamaOfRuin ◴[] No.45189558[source]
This is not the definition of a static site.
replies(1): >>45191595 #
3. scotty79 ◴[] No.45191595[source]
Definitions are blurred. PHP file can be almost HTML file.
4. johntash ◴[] No.45194377[source]
No clue how relevant they are today, but server side includes (SSI) solves the problem of wanting a _mostly_ static page with a little bit of dynamic content in it.