-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (21 loc) · 997 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Created in search of the fastest and concise JavaScript templating function with emphasis on performance under V8 and nodejs. It shows great performance for both nodejs and browsers.
doT.js is a blend of jQote2 and underscore.js templating functions with lots of additions and performance improvements. It is fast, small and has no dependencies.
Features:
custom delimiters,
runtime evaluation,
runtime interpolation,
compile-time evaluation,
partials support,
encoding,
control whitespace - strip or preserve,
streaming friendly
Docs, usage and samples:
http://olado.github.com/doT
Benchmarks for doT.js vs other engines:
http://jsperf.com/dom-vs-innerhtml-based-templating
Note about doU.js:
doU.js is here only so that legacy extrenal tests do not break. Use doT.js.
doT.js with doT.templateSettings.append=false provides the same performance as doU.js.
License:
doT is an open source component of http://bebedo.com
doT is licensed under the MIT License. (See LICENSE-DOT)