Skip to content

Allow specifying effective path for a view renderer #290

@samdark

Description

@samdark

Proposed new feature or change

An ability to match the renderer not only by extension but also based on the view path:

->withRenderers([
    '**payments**.blade.php' => new PhpTemplateRenderer(),
]);

https://github.com/yiisoft/strings/blob/2.x/src/WildcardPattern.php could be used for wildcards support.

Need to consider performance before implementing it.

See #289

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions