Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

76 lines (46 sloc) 1.514 kB


Asynchronous templates for the browser and node.js


I like Mustache and variants but none of them offers quite what I need.

Use Dust if you want these things:

  • async/streaming operation
  • browser/node compatibility
  • extended Mustache/ctemplate syntax
  • clean, low-level API
  • high performance
  • composable templates

Composable templates?

  Child Title
  Child Content


In Node:

$ npm install dust

To render compiled templates in the browser:

<script src="dust-core-0.3.0.min.js"></script>

Demo & Guide

Extensive docs and a full demo are available at

How to run the unit-tests?

I this project we have the distributions of dust, the client and the nodejs version. If you want to run the client version just open the html page called specRunner.html located on "test/client/specRunner.html".

In order to run the server distribution of dust, run this command in the terminal: "node test/server/specRunner.js"

pre-requisites for server version:

  • install nodejs 0.6 or greater
  • install npm
  • install jasmin test framework (npm install -g jasmine-node)
Jump to Line
Something went wrong with that request. Please try again.