Skip to content

akdubya/dustjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Aleksander Williams
Jun 23, 2011
e81af2c · Jun 23, 2011

History

52 Commits
Jan 7, 2011
Jan 26, 2011
Jan 26, 2011
Jun 19, 2011
Jan 26, 2011
Jan 26, 2011
Oct 26, 2010
Oct 25, 2010
Oct 26, 2010
Nov 1, 2010
Jan 26, 2011
Jan 26, 2011
Jan 26, 2011
Jan 7, 2011

Repository files navigation

Dust

Asynchronous templates for the browser and node.js

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