Skip to content

Support for view composers on partials #17

@Truemedia

Description

@Truemedia

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions