cloudfour / fabricator

A tool for building website UI toolkits
http://fbrctr.github.io/
1 stars 0 forks source link

Simplify mapping of template helpers #4

Closed erikjung closed 9 years ago

erikjung commented 9 years ago

Currently, template helpers must be specified individually as properties of an object passed along to the assembly function call.

// assemble
gulp.task('assemble', function (done) {
    assemble({
        // apply additional helpers
        helpers: {
            ifEqual: require('./build/helpers/ifEqual')
        }
    });
    done();
});

It would be preferable to not have to update the Gulp task each time a new template helper is created.

lyzadanger commented 9 years ago

I think your PR fixes this.