Navigation

Home
Search
Submit A Resource
Contact Us
About Functionn

Subscription Options


Subscribe By Email (265+)


Lists


Archives

Jun 15, 2012

Author: Hirvesh Posted At: 6/15/2012 Tags: , , , , ,

doT.js - A Fast & Concise JavaScript Template Engine For Node.js & Browsers

Share:
doT.js was created in search of the fastest and concise JavaScript templating function with emphasis on performance under V8 and Node.js. It shows great performance for both Node.js and browsers.
During my quest I found 2 template engines that caught my attention and inspired doT.

The first one was jQote2, a jQuery plugin, it was the first engine to break the speeds by using string concatenation and avoiding 'with' statements.  The second one was underscore.js which had a nicely designed extension friendly templating function.

doT.js is fast, small and has no dependencies.


Features

  • No dependencies, 120 loc
  • Extremely fast
  • Custom delimiters
  • Runtime evaluation
  • Runtime interpolation
  • Compile-time evaluation
  • Partials support
  • Conditionals support
  • Array iterators
  • Encoding
  • Control whitespace - strip or preserve
  • Streaming friendly
  • Use it as logic-less or with logic, it is up to you


Requirements: None
Demohttp://olado.github.com/doT/
License: MIT License

Daily Posts, Be Updated, Subscribe:

Want Free Web Resources? Enter Your Email And We'll Send It To You - Daily! (265+ Subscribers)

Yup, it's that straight forward! Enter your email address below and we'll send you the latest web resources to your inbox, everyday. We don't do spam. Ever.

Trending Posts On Functionn This Week

Share:

Other Interesting Resources:

0 comments:

Post a Comment

 


Recent Posts

Popular Categories



Popular Components



Popular Licenses