Skip to content

Add support for pug #6

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

miyakeryo
Copy link

Either will do.

gulp.task('template:pug', function() {
    return gulp.src('./*.pug')
        .pipe(pug({client:true, compileDebug:false}))
        .pipe(jadeConcat('template.js', {templateVariable:"PugTemplate"}))
        .pipe(gulp.dest('./js'));
});
gulp.task('template:jade', function() {
    return gulp.src('./*.jade')
        .pipe(jade({client:true}))
        .pipe(jadeConcat('template.js', {templateVariable:"JadeTemplate"}))
        .pipe(gulp.dest('./js'));
});

@skanne
Copy link

skanne commented Jul 13, 2016

Hi, the change in package.json is okay. But why did you introduce the changes to the index.js? This just bloats the code for no obvious reason.

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

Successfully merging this pull request may close these issues.

2 participants