hyde/hyde — Issue #94: Resource listing (via sorter) does not update when new resources are added.
Author: colinsullivan
Created: 2011-10-19 05:25:41+00:00
State: open

Say, for example, I have a folder structure as follows:

course/
hw1/
index.html
hw2/
index.html
index.html

In `course/index.html`, I am listing the hw* resources like this:

{# List all homeworks #}
{% for res in resource.node.walk_resources_sorted_by_hw() %}
...
{% endfor %}

Which works fine, UNTIL I add a new hw folder:

course/
...
hw3/
index.html
...

Then `hyde gen` does not update my `course/index.html` listing to include hw3.

It seems to me that the issue is that the `course/index.html` resource has not been modified, so it is not re-generated. This is an interesting problem. Is it possible to include this type of introspection into which folders are being listed, so we can re-generate `course/index.html` because one of the resources in `resource.node.walk_resources_sorted_by_hw()` has changed?

Let me know what you folks think.