I am trying to create a navbar for my site, and I wonder how to have ejs files automatically have code added from another ejs file. In flask in python it is done on the {% block title%} principle and in another file it is done {% extends 'base.html'%} and then {% block title%} This is title {% endblock%}
Does anyone know if this is possible in javascript?
I am using javascript express and the ejs rendering engine.