title: How to get gulp-handlebars to recognize partials
body: <p>I am having trouble getting handlebars to locate my partials. I have a nested folder structure that looks like the following:</p>
  
  <pre><code>some/local/path/handlebars/shared/_shared.hbs
  some/local/path/handlebars/nested/template1.hbs
  some/local/path/handlebars/nested/template2.hbs
  </code></pre>
  
  <p>I thought that by default handlebars is supposed to mark all files that start with an underscore as a partial, but I'm not seeing any calls to "registerPartials" in the output. Below is the last modification I've made to my gulp task. I can't seem to figure out how to debug this - maybe I've been staring at it for too long.</p>
  
  <pre><code>gulp.task('template', function() {
      return gulp.src(paths.templates)
          .pipe(handlebars())
          .pipe(wrap('Handlebars.template(&lt;%= contents %&gt;)'))
          .pipe(declare({
              namespace: 'myapp.templates',
              noRedeclare: true,
              processName: function(filePath) {
                  return someFunction(filePath);
              }
          }))
          .pipe(concat('templates.js'))
          .pipe(gulp.dest('output/path'));
  });
  </code></pre>
  
  <p>My <strong>paths.templates</strong> variable is set to this:</p>
  
  <pre><code>some/local/path/handlebars/**/*.hbs
  </code></pre>
  
  <p>Any idea what I'm doing wrong here? Also, just out of curiosity (and maybe this is part of my problem), but is there another purpose for processName outside of generating the namespace?</p>
  
  <p>Thanks in advance for any help!</p>