Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

shizhenzq/dustjs-linkedin-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

34 Commits

Repository files navigation

dustjs-linkedin-brunch

Adds Dustjs (LinkedIn fork) support to brunch.

Installation

Add "dustjs-linkedin-brunch": "x.y.z" to package.json of your brunch app.

Pick a plugin version that corresponds to your minor (y) brunch version.

If you want to use git version of plugin, use "dustjs-linkedin-brunch": "git@github.com:mgarbacz/dustjs-linkedin-brunch.git" instead.

Usage

Create a template:

# views/templates/example.dust
<h1>Hello {name}!</h1>

Require the template into a variable:

template = require 'views/templates/example'

Load template into the dust.cache object:

dust.loadSource template

Render the template:

dust.render 'example', { 'name': 'Batman' }, (error, output) =>
 @$el.html output if not error

For more info on Dustjs itself, visit the docs prepared by LinkedIn.

License

[MIT License] (LICENSE.md)

About

Adds Dustjs (LinkedIn fork) support to brunch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /