Sunday, 15 September 2013

javascript - Template engine for node.js -



javascript - Template engine for node.js -

i know best template engine node.js. i'm using jade engine node.js.

the confusion arise after reading

https://github.com/baryshev/template-benchmark

please suggest me best

thanks.

there no best view engine. criteria best view engine based on actual needs template engine has realize , person(s) using it. lot of people love jade view engine, example, there many not consider because not syntax. priorities should follow simple:

syntax: syntax view engine has you? features: view engine have want (e.g. includes, variables, filters)? learning: hard learn? if have designers, understand it? tooling? community: there community, or reachable, can help problems? performance: view engine compile , cache? if not, really matter?

note view engines automatically fall compilation , caching when run node in production mode (node_env=production) should check out different flavours of view engines , decide on best according criteria of project (e.g. jade, handlebars, ejs, gaikan).

update: looked @ benchmarks , decided merge own view engine (gaikan). fork can seen @ address https://github.com/deathspike/template-benchmark including results. if performance, adds valuable option, recommend stick priorities listed above.

javascript performance node.js

No comments:

Post a Comment