Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
olado committed Jul 15, 2011
1 parent 2ed27a5 commit ad9319b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README
Expand Up @@ -11,6 +11,7 @@ Features:
runtime evaluation,
runtime interpolation,
compile-time evaluation,
partials support,
encoding,
control whitespace - strip or preserve,
streaming friendly
Expand All @@ -27,6 +28,9 @@ To run the benchmarks for measuring execution of compiled templates:
With node:
node benchmarks/templatesBench.js

doT.js vs other engines:
http://jsperf.com/dom-vs-innerhtml-based-templating

To run the benchmarks for measuring compilation speed:

In the browser:
Expand All @@ -46,7 +50,7 @@ Usage:
{{= }} for interpolation,
{{ }} for evaluation,
{{! }} for interpolation with encoding,
{{# }} for compile-time evaluation/includes,
{{# }} for compile-time evaluation/includes and partials,
{{## #}} for compile-time defines

Other delimiters may be configured.
Expand All @@ -59,5 +63,8 @@ Usage:
// 2. Use template function as many times as you like
var resultText = tempFn({foo: 'with doT'});

Basic template sample: https://github.com/olado/doT/blob/master/examples/snippet.txt
Advanced template sample: https://github.com/olado/doT/blob/master/examples/advancedsnippet.txt

License:
Licensed under the MIT License. (See LICENSE-DOT)

0 comments on commit ad9319b

Please sign in to comment.