Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Theme controller. #28

Open
WanWizard opened this issue Apr 18, 2017 · 4 comments
Open

Theme controller. #28

WanWizard opened this issue Apr 18, 2017 · 4 comments
Milestone

Comments

@WanWizard
Copy link

Base controller with a concept of a parent "container" view.

@WanWizard
Copy link
Author

@stevewest can you explain what you exactly mean by this?

@emlynwest
Copy link
Contributor

So something along the lines of a Controller that has a "theme" view as a property containing the layout of the page. Then it will inject the action's result in to this view and return it as the response body.

Thinking about it "layout" might be better than "theme" and also this might be better done as some kind of middleware rather than a controller.

@WanWizard
Copy link
Author

Ah, ok. I think that requires a bit more thought, as in a "themed" layout, it is seldom a single section that needs updated while the rest is static.

That is why the "FlexCoders" engine works the other way around, it defines the page with all it's seconds, and then uses HMVC calls to fetch the views for every individual section (which could be just hardcoded HTML of course). It was loosly modeled on Joomla's templating system.

@emlynwest emlynwest added this to the 2.0.0-beta1 milestone Apr 18, 2017
@emlynwest
Copy link
Contributor

At the moment it's just initial ideas, I suspect that this might be something that could be handled by the result of #31

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants