xonecas.io
818
Du

dustymarkdown / files

dustymarkdown / node_modules / dust / README.md

950 bytes
1Dust
2====
3
4> Asynchronous templates for the browser and node.js
5
6#### <http://akdubya.github.com/dustjs> #
7
8Why?
9----
10
11I like [Mustache](http://mustache.github.com) and variants but none of them offers quite what I need.
12
13Use Dust if you want these things:
14
15* async/streaming operation
16* browser/node compatibility
17* extended Mustache/ctemplate syntax
18* clean, low-level API
19* [high performance](http://akdubya.github.com/dustjs/benchmark/index.html)
20* composable templates
21
22Composable templates?
23---------------------
24
25    {^xhr}
26      {>base_template/}
27    {:else}
28      {+main/}
29    {/xhr}
30    {<title}
31      Child Title
32    {/title}
33    {<main}
34      Child Content
35    {/main}
36
37Installation
38------------
39
40In Node:
41
42    $ npm install dust
43
44To render compiled templates in the browser:
45
46    <script src="dust-core-0.3.0.min.js"></script>
47
48Demo & Guide
49------------
50
51Extensive docs and a full demo are available at <http://akdubya.github.com/dustjs>