Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate module per template partial #89

Closed
stramel opened this issue Jun 30, 2015 · 5 comments
Closed

Separate module per template partial #89

stramel opened this issue Jun 30, 2015 · 5 comments

Comments

@stramel
Copy link

stramel commented Jun 30, 2015

I would love to have the same ability that ngHtml2js does where you can create a module for each template file.

@miickel
Copy link
Owner

miickel commented Jul 1, 2015

Ok, help me out here... what's the point in doing that? For me it would just mean more work, by having to "require" a new module for each template, right? I see no benefit for it, but I leave it here for the community to discuss!

@nathanosdev
Copy link

Maybe the ability to modularize multiple partials together would be nice, and it could have implications for selectively caching modules for different sections of a very large website but the work involved in implementing that as well as configuring it on a per website basis would be impractical.

@miickel
Copy link
Owner

miickel commented Jul 16, 2015

@AnimaMundi that's true, but you could still just set up separate gulp tasks to achieve the same thing. Just have templates from module A in folder A, and module B in folder B and you're good to load them separately.

@nathanosdev
Copy link

I guess that answers @stramel question too then!!! I didn't realise you could specify a module title until after I commented I only came across this plugin this morning. I have gone from building sites with a php framework with 2,899 files to around 5 files with javascript, it's insane. Good work on this contribution!

@nathanosdev
Copy link

Never mind, the node_modules folder has 12,000 files.... ah well haha

@miickel miickel closed this as completed Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants