Skip to content

🐛 [Bug]: Mustache template engine; partials don't work #383

@Durandle46

Description

@Durandle46

Bug Description

When using the Mustache template engine, partials don't appear to work and the engine does not produce any errors or output in the logs, even when using deliberately non-existent template names.

How to Reproduce

Using: go version go1.22.2 windows/amd64
Using: latest version of Fiber and related modules (go get -u ./...)

  • Created a project that mirrors the example in the Fiber Mustache docs.
  • Compile and run it. Browse to the service.
  • Main index page renders in the layout, partials are not included, no log output related to it.

Expected Behavior

Partials rendered into the template.

Template package Version

v2.0.10

Code Snippet (optional)

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my problem prior to opening this one.
  • I understand that improperly formatted bug reports may be closed without explanation.

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