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?

  • What is your template engine that does not know how? Any decent can - Snow
  • @donkey, for example, what? - nörbörnën
  • @idd here is an unfinished little template engine here: nodesmarty.com can also include configuration files and make the variables and insert variables. - lampa

0