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

Support for view composers on partials #17

Open
Truemedia opened this issue Nov 16, 2016 · 0 comments
Open

Support for view composers on partials #17

Truemedia opened this issue Nov 16, 2016 · 0 comments

Comments

@Truemedia
Copy link

Truemedia commented Nov 16, 2016

Ok so I realise this is a niche feature most people won't use, but I find especially useful when using a template engine like this.

View composers work fine for the main view or layout of a page but when you register for partial included using the {{> _partialname }} syntax it never fires.

I currently use the view composer for my layout controller which trims that down nicely, and lets me set some variables as arrays that I cannot access directly in handlebars normally. I wanted to implement a view composer for a partial called sidebar since I have a lot of custom stats being pulled in for the sidebar, but currently limited to one view composer.

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

No branches or pull requests

2 participants