Skip to content

Reload views? #3875

@mrusme

Description

@mrusme

I've beein going through the Fiber code and stumbled upon the following line:

https://github.com/gofiber/fiber/blob/aaad4cf56e004d1453e41f766db74afe14739214/app.go#L1226C30-L1226C34

I was wondering if there are any side-effects that would prevent a call to app.config.Views.Load() from being made public via an app.ReloadViews() wrapper (or similar)?

The reason I'm asking is because I'm looking for a way to reload the whole views directory from disk without restarting the whole app.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions