foundation / foundation/panini

Panini.refresh() does not update partials when only line order is changed.

Open
#115 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
593
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Hi, I have a header.html with a dropdown menu, which looks like this:

```


```
This file is included in the default layout, with {{> header}}.

If I change the order of the menu items, moving the menu items around, the final page is not updated, but if I change a character it works as expected. The refresh function is called by Gulp, but it does not correctly refresh the changes in the partial.

```
[BS] Reloading Browsers...
[22:24:28] Finished 'reload' after 895 μs
[22:24:31] Starting 'resetPages'...
[22:24:31] Finished 'resetPages' after 10 ms
[22:24:31] Starting 'pages'...
[22:24:31] Finished 'pages' after 36 ms
[22:24:31] Starting 'reload'...

```
Also, if I change a page, only that page gets the updated partials, while older pages that did not change still get the old header.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.