I am learning Node.js for website development.
Previously I could use PHP to include something like a navigation bar on every page, using <?php include('blah.php') ?>
. This works in the same way of me just using the actual code on the page.
My question is: is there any way to import HTML elements / pages from one page to another with JS / Node.js?
Bearing in mind, PHP integrates directly with HTML in the same file, and Node.js does not integrate so seamlessly, so what I'm asking might be impossible.
mercredi 30 mai 2018
node.js - Loading html in a similar way to PHP
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire