In PHP, you can insert a site block using a file:

<?php require_once "block_path.php"?> 

I am writing on node.js and I need something like that on require_once in node. How can this be implemented (on a pure node)?

  • Need specifics. Under the node of a dozen frameworks, even more template engines, and that's not counting hand-made bikes - Alexey Ten
  • @AlexeyTen purely node - Yevgeny Babiychuk
  • Well, write as it will be. Consider that unlike php the server on the node is a long-lived process - Alexey Ten

0