Reported in #10392 by a user iterating on a reveal.js custom title slide.
When a document or project uses template-partials: to override a Pandoc template partial, quarto preview does not re-render when the partial file itself is edited. The change only appears after stopping and restarting quarto preview.
format:
revealjs:
template-partials:
- title-slide.html
Editing title-slide.html while quarto preview is running produces no re-render. Editing the .qmd does trigger a re-render that picks up the latest partial, so touching the source file is a workaround.
This is the template-partial analogue of two related cases: included files via {{< include >}} not triggering a re-render (#2795), and project pages serving stale HTML after a direct .qmd edit (#10392, fixed in #14548). In each, the watcher does not treat a non-input dependency of a rendered file as a re-render trigger.
We could add files referenced via template-partials: to the preview watch list, mapping each partial back to the documents that consume it.
Related: #10392, #2795, #14548.
Reported in #10392 by a user iterating on a reveal.js custom title slide.
When a document or project uses
template-partials:to override a Pandoc template partial,quarto previewdoes not re-render when the partial file itself is edited. The change only appears after stopping and restartingquarto preview.Editing
title-slide.htmlwhilequarto previewis running produces no re-render. Editing the.qmddoes trigger a re-render that picks up the latest partial, so touching the source file is a workaround.This is the template-partial analogue of two related cases: included files via
{{< include >}}not triggering a re-render (#2795), and project pages serving stale HTML after a direct.qmdedit (#10392, fixed in #14548). In each, the watcher does not treat a non-input dependency of a rendered file as a re-render trigger.We could add files referenced via
template-partials:to the preview watch list, mapping each partial back to the documents that consume it.Related: #10392, #2795, #14548.