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

Two-step-layout data needs issue #1

Closed
Beanow opened this issue Sep 15, 2014 · 4 comments
Closed

Two-step-layout data needs issue #1

Beanow opened this issue Sep 15, 2014 · 4 comments

Comments

@Beanow
Copy link

Beanow commented Sep 15, 2014

If you have a blog, and you're going to /blog/:id.
The result can be NotFound or Found.

The BlogResponder will have 2 layouts, default and notFound.
The default layout needs the data for: main_menu, footer_menu
The not found layout needs the data for: main_menu, recent_searches

Currently I don't know how to provide this different data properly, because the Responder is the only one that knows which layout will be picked and is not allowed to query the domain.

@harikt
Copy link
Contributor

harikt commented Sep 15, 2014

This is my take 1d370ad .

I believe there is some understanding between the domain and the view.

We could not expect the view knows everything, or if we are trying to fetch some data then probably it can be from a js via ajax once it is rendered ;) .

@harikt
Copy link
Contributor

harikt commented Sep 16, 2014

@Beanow I am closing the issue. In case you have still problem just re-open it .

Thanks!

@harikt harikt closed this as completed Sep 16, 2014
@Beanow
Copy link
Author

Beanow commented Sep 16, 2014

Thanks @harikt pmjones further explained this method and it looks like this is the way to go :]

@harikt
Copy link
Contributor

harikt commented Sep 17, 2014

great and Good to know :) .

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

2 participants