Skip to content

Multiple partials with same file name, in different directories #32

Open
@burtyish

Description

@burtyish

I'm trying to migrate a large project to assemble. I have two partials named header.hbs, placed in different directories like this:
../partials/foo/header.hbs
../partials/bar/header.hbs

I've tried {{> foo/header }} and {{> 'foo/header' }} but those fail with Warning: The partial foo/header could not be found.

I can see in the verbose output that two partials with name header are created. {{> header }} succeeds, but will always return the second file (probably since it was the last one registered).

How can I reference a specific header partial?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions