https://github.com/webpro/requirejs-dust
Simple Dust plugin for RequireJS
https://github.com/webpro/requirejs-dust
Last synced: about 1 year ago
JSON representation
Simple Dust plugin for RequireJS
- Host: GitHub
- URL: https://github.com/webpro/requirejs-dust
- Owner: webpro
- Created: 2013-06-02T21:17:27.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-02T21:31:10.000Z (almost 13 years ago)
- Last Synced: 2025-02-24T20:04:56.290Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# requirejs-dust
Simple Dust plugin for RequireJS.
* Requires the official `text!` plugin.
* Like the offical `text!` plugin, include the file extension in the module id.
* Make sure to include `dust-core.js` from Dust in your build instead of `dust-full.js`.
## Example usage
define(['dst!myTemplate.tpl'], function(myTemplate) {
myTemplate({name:'John Doe'}, function(error, html){
//
});
});
## Example config
require.config({
paths: {
'text': 'lib/requirejs-text/text',
'dust': 'lib/dustjs-linkedin-amd/dust-full',
'dst': 'lib/requirejs-dust/dst'
}
});