I used to develop websites the following way:
footer.php
header.php
navigation.php
index.php
contact.php
Doing it this way allowed me to only make changes in one place.
For example if I wanted to change footer information. All I would change is footer.php
I don’t want to use php to do this anymore. What are someone of the alternative solutions to creating a flexible website structure. Would node.js achieve this?
Sure, node.js has awesome web frameworks and templating languages. The biggest difference will be that instead of maintaining a set of documents (header, footer, index, contact) served from a web server, you’ll be writing a server itself that can route URLs to functions. It’s a bit of a paradigm shift, but it it gives you a lot of power, and flexibility.
My favorite node.js web framework is ExpressJS. Welcome to the node community!