-
Notifications
You must be signed in to change notification settings - Fork 4
Showcase Wishlist
Benjamin Arthur Lupton edited this page Jul 4, 2014
·
2 revisions
A place to add things that you wish were possible:
require('chainy').create()
.requireBundle('jquery')
.$('#my-input')
.val('my input value')
.on('click', function(){
})
// Example is conceptual at this stage
var Chainy = require('../').extend().require(['loadFiles', 'writeFiles']);
Chainy.create()
.addPlugin('coffeekupFiles', function(opts, next){
this.create().require(['set', 'query', 'map'])
.set(this.data)
.query({path: {$grep: 'src/documents/**/*.html.coffee*'}})
.map(function(file, complete){
this.create().require(['set', 'coffeekup', 'done'])
.set(file.content)
.coffeekup(opts)
.done(function(err, result){
if (err) return complete(err, file);
file.content = result;
return complete(null, file);
});
})
.done(next);
})
.loadFiles('src/documents')
.coffeekupFiles()
.writeFiles();
Navigate using the sidebar on the right.
This wiki content is:
Copyright 2014+ Bevry Pty Ltd
Permissively licensed under the Creative Commons Attribution 4.0 International License