Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrislapiroff/11ty-pug-bug
https://github.com/harrislapiroff/11ty-pug-bug
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/harrislapiroff/11ty-pug-bug
- Owner: harrislapiroff
- Created: 2023-10-12T20:08:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T20:09:45.000Z (over 1 year ago)
- Last Synced: 2024-11-25T12:44:18.379Z (2 months ago)
- Language: Pug
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 11ty Pug Bug Reproduction
This repo demonstrates a bug I've found in 11ty's serve integration with Pug. Updating partials that are included in a Pug template using `include` does not trigger pages using the template to rerender. To reproduce:
```sh
git clone https://github.com/harrislapiroff/11ty-pug-bug
npm install
npx @11ty/eleventy --serve
```Observe the page at http://localhost:8080/ should have a heading "Hello world!" and content "Change the heading above by editing src/_includes/partial.pug."
Edit the file `src/_includes/partial.pug` to say something else, like "Goodbye world!"
Observe the page in your browser still says "Hello world!" in the header (expected behavior: page should say "Goodbye world!")
Trigger a save of the file `src/_includes/page.pug` (you do not need to make any changes). Observe that the page in your browser now correctly reads "Goodbye world!"