apparentlymart/rokopher — Issue #2: Allow items to be included by reference for asynchronous loading rather than inline
Author: apparentlymart
Created: 2012-01-23 03:04:23+00:00
State: open

Right now all of the content items must be included inline in any document that requires them.

It's desirable to be able to include references to documents containing raw lists of items and have the framework load them asynchronously as necessary.

```xml

```

This would refer to a document which is just a raw list of items, like this:

```xml

```

The item list can include recursive "includeitems" elements as necessary, allowing for a list that grows in several steps.

This requires some pretty significant refactoring of the current, very-serial workflow that has hard steps Fetch, Transform, Display to instead have a more DOM-like model that supports the original data being amended later and also a solution to allow the various views to detect when they need to actually trigger a load.

The other advantage of this reference-based approach is that it allows separation of items from presentation, allowing an architecture where a certain endpoint can produce lists of items based on various criteria and then various static views can reference that service in different ways.