Open rsyring opened 3 years ago
The reason this happens is due to Jinja caching imports:
assets_include
on that first parse into a call block that will produce the expected contentNot sure there's a clean way around this without coming up with a way to change how Jinja caches the import, or using a different approach to assets inclusion altogether.
My template
landing.html
started like:_resources.html
had some macros that were used andassets_include
at the top of it_resources.css
had some css that was needed by the macrosI observed that the content from
_resources.css
only made it into the page immediately after savinglanding.html
, presumably due to the process/server restart triggered by the file modification. On subsequent browser refreshes, the content was absent.