Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handlebars #1

Open
radum opened this issue Apr 18, 2016 · 1 comment
Open

Handlebars #1

radum opened this issue Apr 18, 2016 · 1 comment

Comments

@radum
Copy link

radum commented Apr 18, 2016

How do you precompile Handlebars template to use them instead of Jade?

@radum
Copy link
Author

radum commented Apr 19, 2016

Somehow answering my own question for others to find

I used gulp-handlebars like this:

gulp.task('views', () => {
    gulp.src(['views/**/*.hbs'])
        .pipe($.handlebars({
            handlebars: require('handlebars')
        }))
        .pipe($.defineModule('node'))
        .pipe(gulp.dest('.bin/views/'));
});
var routes = require('./controllers/routes');

taunusExpress(taunus, app, {
    routes: routes,
    layout: require('./.bin/views/layouts/main')
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant