This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/dust
2014-09-18 15:35:58 -04:00
..
benchmark First commit 2014-09-18 15:35:58 -04:00
dist First commit 2014-09-18 15:35:58 -04:00
docs First commit 2014-09-18 15:35:58 -04:00
lib First commit 2014-09-18 15:35:58 -04:00
nbproject First commit 2014-09-18 15:35:58 -04:00
src First commit 2014-09-18 15:35:58 -04:00
test First commit 2014-09-18 15:35:58 -04:00
vendor First commit 2014-09-18 15:35:58 -04:00
.npmignore First commit 2014-09-18 15:35:58 -04:00
index.html First commit 2014-09-18 15:35:58 -04:00
LICENSE First commit 2014-09-18 15:35:58 -04:00
Makefile First commit 2014-09-18 15:35:58 -04:00
package.json First commit 2014-09-18 15:35:58 -04:00
README.md First commit 2014-09-18 15:35:58 -04:00
TODO First commit 2014-09-18 15:35:58 -04:00

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