Skip to content

[Bug] #[derive(Template)] panics when using include with nested templates #288

@LukeMathWalker

Description

@LukeMathWalker

I've built a small test to reproduce the bug, which you can see here.

What I think is happening:

  • The base template includes the fragment using a path prefix with the folder that contains it (i.e. included/)
  • The prefixed path is not valid when used from the leaf template, where the correct path prefix would be ../included/
  • The leaf template is resolving the includes in the base template as if the base template belonged to the same folder of the leaf template, which isn't the case

I don't have a fix (yet), but putting this up here for visibility in case others bump into it.

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