GulinSS / jade-angularjs-brunch

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

templateCache according to real jade directory structure #8

Closed sposmen closed 11 years ago

sposmen commented 11 years ago

Hi,

I had a problem when i need to made template partials inside angular because it takes only first level of path according to template, in this change modulePath was modified according to real jade structure inside templates.

Sample Structure

templates
├── content
│   ├── content.jade
│   └── folder.jade
├── content.jade
├── home
│   ├── access_content.jade
│   ├── contact_form.jade
│   ├── other_programs.jade
│   └── suscriptions.jade
├── home.jade
├── nav.jade
├── partial1.jade
└── todo.jade

Thanks!

matisojka commented 11 years ago

:+1:

This is what one really needs when structuring large applications, @sposmen thanks a lot for this pull request.

I am using https://github.com/scotch/angular-brunch-seed for bootstrapping AngularJS applications, and found this problem. For now I'm just pointing in my package.json directly to this repository, is there any chance of seeing an official release soon?

GulinSS commented 11 years ago

Official release needs to overall testing, but I havent free time for now ;-(

lenw commented 11 years ago

This seems to have been overwritten with the next pull request - any reason for that ?