Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dustjs

> 编程语言
Open source

Asynchronous templates for the browser and node.js

1.4K stars0 likes1 views
WebsiteGitHub

About

Asynchronous templates for the browser and node.js

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

GitHub Issues· 56 open

View all on GitHub
  • #75

    No such module: evals

    Updated Aug 3, 2018
  • #67

    Shootout page does not work.

    Updated Jun 2, 2016
  • #74

    There is no way making output HTML pretty

    Updated Apr 20, 2016
  • #71

    Is this project dead?

    Updated Aug 31, 2015
  • #56

    feature request: Is it possible to change the delimiters?

    Updated Jul 15, 2015
  • #65

    The callback interface is not always suitable

    Updated May 20, 2015
  • #64

    Plural/singular

    Updated May 19, 2015
  • #73

    Allow colons in keys

    Updated Mar 21, 2015

Highlights

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

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言