Skip to content
This repository

Asynchronous templates for the browser and node.js

branch: master

Merge pull request #25 from stonecobra/master

process.binding('evals') is now require('vm')
latest commit e81af2caca
Aleksander Williams authored
Octocat-spinner-32 benchmark update docs January 07, 2011
Octocat-spinner-32 dist release v0.3.0 January 26, 2011
Octocat-spinner-32 docs release v0.3.0 January 26, 2011
Octocat-spinner-32 lib update to support evals moving to require('vm') June 18, 2011
Octocat-spinner-32 src experimental pragma support January 26, 2011
Octocat-spinner-32 test rebuild parser and add escape pragma example January 26, 2011
Octocat-spinner-32 vendor demo fixes for dumb browsers October 26, 2010
Octocat-spinner-32 .gitignore initial commit October 25, 2010
Octocat-spinner-32 LICENSE added LICENSE October 26, 2010
Octocat-spinner-32 Makefile added release task November 01, 2010
Octocat-spinner-32 README.md release v0.3.0 January 26, 2011
Octocat-spinner-32 TODO update TODO January 26, 2011
Octocat-spinner-32 index.html release v0.3.0 January 26, 2011
Octocat-spinner-32 package.json bump target version January 07, 2011
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

Something went wrong with that request. Please try again.