Naming issue
Closed this issue · 2 comments
vendethiel commented
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
Same problem here.
volgar1x commented
Same problem :(