moklick / frontend-stuff

📝 A continuously expanded list of frameworks, libraries and tools I used/want to use for building things on the web. Mostly JavaScript.
Other
8.78k stars 697 forks source link

Added the Marko templating engine #2820

Closed patrick-steele-idem closed 8 years ago

patrick-steele-idem commented 8 years ago

Thanks for maintaining this list! Please consider adding Marko to the "Templating" section.

Marko is a fast and lightweight HTML-based templating engine for Node.js as the browser. Template authors can use either a concise, indentation-based syntax or a familiar HTML syntax. It supports streaming and async rendering to create server-rendered pages that load instantly thanks to progressive HTML rendering.

Marko has been shown to be one of the fastest templating engines with almost 2x the speed of Handlebars and 5x the speed of Jade and nunjucks:

Template Engine Results
marko 187,729 op/s (fastest)
dot 183,161 op/s (2.43% slower)
handlebars 104,634 op/s (44.26% slower)
dust 83,773 op/s (55.38% slower)
swig 54,866 op/s (70.77% slower)
jade 32,929 op/s (82.46% slower)
nunjucks 32,306 op/s (82.79% slower)
react 3,651 op/s (98.06% slower)

Source: marko-js/templating-benchmarks

Marko is heavily tested and battle-tested in production at eBay (and other companies). We also have an active Gitter chat room: https://gitter.im/marko-js/marko

Marko Widgets is a separate UI component building library that uses Marko templates as the view. It offers advanced features like DOM diffing/patching, batched updates, stateful widgets, declarative event binding and efficient event delegation. Marko Widgets has been shown to be 10x faster than React for rendering the same page on the server using a very similar UI components-based architecture:

Marko vs React

Source: Marko vs React

Disclaimer: I'm the author of Marko and Marko Widgets

moklick commented 8 years ago

:+1: