Good day! Only Frontend! For example, there are templates that should be embedded in the main file:
templates/template1.html templates/template2.html index.html How can templates be connected to index.html? The extension in the template is not important, the main thing is to connect, for compiling using the template engine. There is a way, $ ('# container'). Load ('path / to / file'), but the fact is that it will load them after $ (document) .ready () happens. Is there a faster way?