ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.32k stars 382 forks source link

Question: How precompile actually works? #292

Closed davidnguyen11 closed 3 years ago

davidnguyen11 commented 3 years ago

I investigated the code. So far I understand every time load page, it store the compiled template to variable cache and next time it get template from cache rather than running compile function again. Question:

UziTech commented 3 years ago

Makes it easier to use on the client side. https://handlebarsjs.com/installation/precompilation.html

All new development of express-handlebars is done on a new repo express-handlebars/express-handlebars. Please create an issue there if you need more assistance.