Skip to content
Asynchronous templates for the browser and node.js
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark update docs Jan 7, 2011
dist release v0.3.0 Jan 26, 2011
docs release v0.3.0 Jan 26, 2011
lib update to support evals moving to require('vm') Jun 19, 2011
src experimental pragma support Jan 26, 2011
test rebuild parser and add escape pragma example Jan 26, 2011
vendor demo fixes for dumb browsers Oct 26, 2010
.gitignore initial commit Oct 25, 2010
LICENSE
Makefile added release task Nov 1, 2010
README.md release v0.3.0 Jan 26, 2011
TODO update TODO Jan 26, 2011
index.html release v0.3.0 Jan 26, 2011
package.json

README.md

Dust

Asynchronous templates for the browser and node.js

http://akdubya.github.com/dustjs

Why?

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?

{^xhr}
  {>base_template/}
{:else}
  {+main/}
{/xhr}
{<title}
  Child Title
{/title}
{<main}
  Child Content
{/main}

Installation

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 http://akdubya.github.com/dustjs

You can’t perform that action at this time.