I want to use Pug in server side as Node.js template engine for my websites, by I afraid worry performance. When we use Pug locally just as HTML pre-processor, performance is not critical, but if Pug compilation makes server response time longer, I forced to select other template engine.
I suppose, as far as template engine is close to HTML it has better performance but worse maintainability than Pug (if it's wrong please correct me).
Pug is a good choice.
I suppose, as far as template engine is close to HTML it has better performance but worse maintainability than Pug (if it's wrong please correct me).
Actually the performance are moreover bound to the quality of the template engine. If you take a template engine which starts to something quite similar to HTML but written by dogs, probably it has worst performance than pug.
With pug you can also cache the template functions to save some CPU time in exchange of some memory...
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With