Closed davidnguyen11 closed 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.
I investigated the code. So far I understand every time load page, it store the
compiled template
to variablecache
and next time it get template from cache rather than running compile function again. Question:cache
, why do we needprecompile
?