kenhkan / angular-templates-brunch

Wrap all templates in an AngularJS module for Brunch.IO
0 stars 6 forks source link

project base path #2

Open mwmitchell opened 10 years ago

mwmitchell commented 10 years ago

It'd be AWESOME if you could specify the base path to the app templates - or even better, a function in the config file that would produce the template path based on whatever input is available!

kenhkan commented 10 years ago

@mwmitchell What do you mean by changing the path based on a function? For the base path, would this help? It's currently in master. I just need to bump the version.

mwmitchell commented 10 years ago

Hi @kenhkan yeah, that would help. I think even better though, would be to have this plugin call a function that's on the config. The function would be option, but when present, it would be called with the current template path/url being processed. The function would then be responsible for returning the cache key so that custom keys could be used. For example, I have an app that's organized by modules. Instead of specifying the path, I just want to use something like {templateUrl: "users.index"}

kenhkan commented 9 years ago

I'm assuming your PR reflects this, right?