From 858bccba4692b596f377ba2b77c7404218754553 Mon Sep 17 00:00:00 2001 From: juji Date: Tue, 17 Nov 2020 01:13:55 +0700 Subject: [PATCH 1/3] remove some dead links and use protocol-relative URIs --- doT/index.html | 21 +++++++++++++-------- doT/tutorial.html | 12 +++++++----- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/doT/index.html b/doT/index.html index d993ca3..9fcf61b 100644 --- a/doT/index.html +++ b/doT/index.html @@ -10,7 +10,7 @@ doT.js - the fastest and concise javascript template engine for Node.js and browsers -Fork me on GitHub +Fork me on GitHub doT.js @@ -91,18 +91,20 @@

Compile time evaluation vs Runtime evaluation

It is also used to statically compile partials. This comes in handy when you want to include similar header and footer on multiple pages. doT also allows to customize partial right from the template that will include it.

Check advanced sample and one more sample for hints on how to use defines and partials.

Benchmarks

-

+ + + +Benchmarks are available in github

To run the benchmarks for measuring execution of compiled templates:
-In the browser: navigate to benchmarks/index.html or go here +In the browser: navigate to benchmarks/index.html or go here
With node: node benchmarks/templatesBench.js

@@ -245,20 +247,23 @@

Example for express


I added an example of the best way to do it: doT with express

Issues

-github.com/olado/doT/issues +github.com/olado/doT/issues

History

First released on January 10, 2011
Latest version: 1.0.3 December 2, 2014

Author

-@olado +github: @olado +twitter: @olado + +
doT.js by Laura Doktorova, MIT license
- + diff --git a/doT/tutorial.html b/doT/tutorial.html index d877b49..bfc51b7 100644 --- a/doT/tutorial.html +++ b/doT/tutorial.html @@ -19,8 +19,9 @@

The fastest + concise javascript template engine
for node.js and browsers

https://github.com/olado/doT

by Laura Doktorova, MIT Licence

- @olado - http://bebedo.com + @olado + +
@@ -54,7 +55,7 @@

A lot of JavaScript templates now

  • etc.
  • - Visit template chooser by Garann to help you choose + Visit template chooser by Garann to help you choose
    @@ -108,7 +109,8 @@

    Templates: performance benchmarking

  • updating the DOM (if on client)
  • size and complexity of the template
  • - JSPerf benchmarks + + JSPerf benchmarks
    @@ -312,7 +314,7 @@

    Fork doT.js on github

    - + From d9cf852078ea291ece93f2dbb9cdc2171c7bef35 Mon Sep 17 00:00:00 2001 From: juji Date: Tue, 17 Nov 2020 01:17:02 +0700 Subject: [PATCH 2/3] use relative URI in github ribbon --- doT/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doT/index.html b/doT/index.html index 9fcf61b..7f45361 100644 --- a/doT/index.html +++ b/doT/index.html @@ -10,7 +10,7 @@ doT.js - the fastest and concise javascript template engine for Node.js and browsers -Fork me on GitHub +Fork me on GitHub doT.js From dba0ab34a77f35c7920f0edffc98ce747da06ac7 Mon Sep 17 00:00:00 2001 From: juji Date: Tue, 17 Nov 2020 01:18:39 +0700 Subject: [PATCH 3/3] use https://github.com/olado/doT in github ribbon --- doT/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doT/index.html b/doT/index.html index 7f45361..b185904 100644 --- a/doT/index.html +++ b/doT/index.html @@ -10,7 +10,7 @@ doT.js - the fastest and concise javascript template engine for Node.js and browsers -Fork me on GitHub +Fork me on GitHub doT.js