Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions doT/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<title>doT.js - the fastest and concise javascript template engine for Node.js and browsers</title>
</head>
<body>
<a href="http://github.com/olado"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/567c3a48d796e2fc06ea80409cc9dd82bf714434/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
<a href="//github.com/olado/doT"><img style="position: absolute; top: 0; left: 0; border: 0;" src="//camo.githubusercontent.com/567c3a48d796e2fc06ea80409cc9dd82bf714434/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>

<img src="doT-js-100@2x.png" alt="doT.js" style="width: 200px;height: 200px;margin: 0 auto;display: block;"/>
<!--<h1>doT.js</h1>-->
Expand Down Expand Up @@ -91,18 +91,20 @@ <h3>Compile time evaluation vs Runtime evaluation</h3>
<p>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.</p> Check <a href="https://github.com/olado/doT/blob/master/examples/advancedsnippet.txt">advanced sample</a> and <a href="https://github.com/olado/doT/blob/master/examples/browsersample.html">one more sample</a> for hints on how to use defines and partials.

<h2>Benchmarks</h2>
<p>
<!-- NOTE: jsperf.com is down -->
<!-- <p>
Here is the <a href="http://jsperf.com/dom-vs-innerhtml-based-templating/53">first benchmark</a> of doT in jsperf.<br/>
Here is a more <a href="http://jsperf.com/dom-vs-innerhtml-based-templating/413">recent benchmark</a> against the new and upgraded engines that popped up lately.
<br/>
People are constantly adding new javascript template engine benchmarks.
</p>
Additional benchmarks are available in <a href="https://github.com/olado/doT/tree/master/benchmarks">github</a>
</p> -->
<!-- Additional -->
Benchmarks are available in <a href="//github.com/olado/doT/tree/master/benchmarks">github</a>
<div class="smaller">
<p>
To run the benchmarks for measuring execution of compiled templates:
<br/>
In the browser: navigate to benchmarks/index.html or go <a href="http://olado.github.com/doT/bench.html">here</a>
In the browser: navigate to benchmarks/index.html or go <a href="//olado.github.com/doT/bench.html">here</a>
<br/>
With node: node benchmarks/templatesBench.js
</p>
Expand Down Expand Up @@ -245,20 +247,23 @@ <h3>Example for express</h3>
<br/>I added an example of the best way to do it: <a href="https://github.com/olado/doT/tree/master/examples/express">doT with express</a>

<h2>Issues</h2>
<a href="https://github.com/olado/doT/issues">github.com/olado/doT/issues</a>
<a href="//github.com/olado/doT/issues">github.com/olado/doT/issues</a>

<h2>History</h2>
First released on January 10, 2011
<br/>Latest version: 1.0.3 December 2, 2014

<h2>Author</h2>
<a href="http://milq.com/p/olado">@olado</a>
<a href="//github.com/olado">github: @olado</a>
<a href="//twitter.com/olado">twitter: @olado</a>
<!-- NOTE: This resource returns 404 -->
<!-- <a href="http://milq.com/p/olado">@olado</a> -->

<div style="margin-top:20px">doT.js by Laura Doktorova, MIT license</div>

</body>
<script src="doT.min.js"></script>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="http://bestiejs.github.com/json3/lib/json3.min.js"></script>
<![endif]-->
Expand Down
12 changes: 7 additions & 5 deletions doT/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ <h2>The fastest + concise javascript template engine<br/>
for node.js and browsers</h2>
<a href="https://github.com/olado/doT">https://github.com/olado/doT</a>
<h3>by Laura Doktorova, MIT Licence</h3>
<a href="http://twitter.com/olado">@olado</a>
<a class="bebedo" href="http://bebedo.com">http://bebedo.com</a>
<a href="https://twitter.com/olado">@olado</a>
<!-- NOTE: this site does not exists -->
<!-- <a class="bebedo" href="http://bebedo.com">http://bebedo.com</a> -->
</div>

<div class="section" id="why">
Expand Down Expand Up @@ -54,7 +55,7 @@ <h1>A lot of JavaScript templates now</h1>
<li>etc.</li>
</ul>
<div class="break"></div>
<a href="http://garann.github.com/template-chooser/">Visit template chooser by Garann to help you choose</a>
<a href="//garann.github.com/template-chooser/">Visit template chooser by Garann to help you choose</a>
</div>

<div class="section" id="features">
Expand Down Expand Up @@ -108,7 +109,8 @@ <h1>Templates: performance benchmarking</h1>
<li>updating the DOM (if on client)</li>
<li>size and complexity of the template</li>
</ul>
<a href="http://jsperf.com/dom-vs-innerhtml-based-templating/413">JSPerf benchmarks</a>
<!-- NOTE: this resource does not exists -->
<a href="//jsperf.com/dom-vs-innerhtml-based-templating/413">JSPerf benchmarks</a>
</div>

<div class="section" id="whyfast">
Expand Down Expand Up @@ -312,7 +314,7 @@ <h1>Fork doT.js on github</h1>
</body>

<script type="text/javascript" src="doT.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://bestiejs.github.com/json3/lib/json3.min.js"></script>
<![endif]-->
Expand Down