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

Pre-cache directive partials #293

Merged
merged 3 commits into from Mar 4, 2015
Merged

Pre-cache directive partials #293

merged 3 commits into from Mar 4, 2015

Conversation

elemoine
Copy link
Contributor

@elemoine elemoine commented Mar 2, 2015

Currently, the directive partials are downloaded by Angular with XHR requests at application init time, in both debug and non-debug mode. With this PR the directive partials are added to build.js, thereby avoiding extra requests in non-debug mode. The behavior is unchanged in debug mode: directive partials are still downloaded at application init time.

Please review.

Fixes #176.

@elemoine
Copy link
Contributor Author

elemoine commented Mar 2, 2015

@sbrunner Note how I use mako-render. Can I use c2c-template instead? How?

@elemoine
Copy link
Contributor Author

elemoine commented Mar 3, 2015

I just rebased this. Please review.

@petzlux
Copy link
Contributor

petzlux commented Mar 4, 2015

Looks good to me

elemoine pushed a commit that referenced this pull request Mar 4, 2015
@elemoine elemoine merged commit e45a0a5 into master Mar 4, 2015
@elemoine elemoine deleted the elemoine_partialcache branch March 4, 2015 13:49
@sbrunner sbrunner modified the milestone: 1 Mar 20, 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

Successfully merging this pull request may close these issues.

Pre-cache directive partials [c2c]
3 participants