`reload` detecting changes to mako templates (again)

14 views
Skip to first unread message

Jonathan Vanasco

unread,
Mar 29, 2019, 1:53:49 PM3/29/19
to pylons-discuss
This happens every so often, but on a large project is making editing the HTML incredibly tedious.

Does anyone have a good strategy for tracking down which component is breaking this and effectively whitelisting the /data directory

Bert JW Regeer

unread,
Mar 29, 2019, 8:24:27 PM3/29/19
to Pylons Project
Mako templates are compiled and imported, when that file is updated the reloader likely sees it, unless it is detecting the file changing on disk.

For the former: I am not sure how to necessarily stop that from happening... but

For the latter I would try the new ignore files feature that Michael added to hupper: https://github.com/Pylons/hupper/pull/46

On Mar 29, 2019, at 11:53, Jonathan Vanasco <jvan...@gmail.com> wrote:

This happens every so often, but on a large project is making editing the HTML incredibly tedious.

Does anyone have a good strategy for tracking down which component is breaking this and effectively whitelisting the /data directory

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/4707172a-42d0-4ec0-9822-a2b1a0783e42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan Vanasco

unread,
Apr 1, 2019, 2:01:43 PM4/1/19
to pylons-discuss


On Friday, March 29, 2019 at 8:24:27 PM UTC-4, Bert JW Regeer wrote:
Mako templates are compiled and imported, when that file is updated the reloader likely sees it, unless it is detecting the file changing on disk.

For the former: I am not sure how to necessarily stop that from happening... but

For the latter I would try the new ignore files feature that Michael added to hupper: https://github.com/Pylons/hupper/pull/46

Oh, this looks GREAT. I've been hoping for a feature like this for a long time.  thank you Bert, and Michael.

Mako, along with Jinja and some other libraries, have their own change detection and reloading systems.  Every so often, a new random library that Pyramid has a dependency on will have an update that recognizes previously un-included directories.


Reply all
Reply to author
Forward
0 new messages