GulinSS / jade-angularjs-brunch

Automatic compiler Jade templates to AngularJS modules for Brunch.IO
31 stars 21 forks source link

Naming issue #11

Closed vendethiel closed 11 years ago

vendethiel commented 11 years ago

Nice plugin, but I'm having some errors with it ..

I have app/Anime/templates/index.jade it gets compiled to return $templateCache.put('/templates/index.html',

because of this :

      modulePath = pair.path.slice(2, pair.path.lastIndexOf(this.modulesFolder) + 1);
      if (modulePath.length === 0) {
        modulePath.push(this.modulesFolder);
      }
      moduleName = modulePath.join('.');
      jsFileName = moduleName + '.js';
      modulePath.push(pair.path[pair.path.length - 1]);

you're actually removing the "Anime" namespace before ...

      pair.path.splice(1, 1, 'js');

I'm using this atm

      virtualPathGen = function() {
        return '/' + pair.path.slice(1).join('/');
      };
paprikka commented 11 years ago

Same problem here.

volgar1x commented 11 years ago

Same problem :(