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

Can't include partials that start with new or data? #78

Open
skeddles opened this issue Jul 6, 2021 · 0 comments
Open

Can't include partials that start with new or data? #78

skeddles opened this issue Jul 6, 2021 · 0 comments

Comments

@skeddles
Copy link

skeddles commented Jul 6, 2021

This is a really weird bug, but I couldn't figure out why my partials weren't being found... if I make any partial that starts with the word new or data, they don't get picked up and added to the partials list (I'm using debug mode, and can see all the loaded partials).

My build looks like this:

function compile_page(){
    gulp.src(path.join('./views/index.hbs'))
		.pipe(include({includePaths: ['/svg']}))

        .pipe(handlebars({encoding: 'utf8', debug: true, bustCache: true})
            .partials('./views/[!index]*.hbs')
            //.helpers({ svg: hb_svg })
            .helpers('./helpers/**/*.js')
            .data({
                projectSlug: 'pixel-editor',
                title: 'Lospec Pixel Editor',
                layout: false,
            }))
        .pipe(rename('index.htm'))
        .pipe(gulp.dest(BUILDDIR));
}

So ./views/new-stuff.hbs and ./views/data-stuff.hbs will not show up in the list of partials (and not be loaded), but if I change the names to ./views/anew-stuff.hbs and ./views/sata-stuff.hbs, then they both get loaded fine.

Really weird.

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