We've wanted this for a while (no recursion is one of the things Exhibit 
sacrificed for simplicity from the original haystack system design).  
It'd be great if you wanted to take on the task.  I'd suggest using the 
lens framework for the inlining.  ie, that you define, say, a lens for 
showing people, and arrange for that lens to be invoked to create the 
inline rendition of the item.  This could happen two ways
* define a lens that triggers on things of type "Person", and let 
exhibit conclude which lens is to be used by checking the type of the 
object to be rendered
* specify which lens to use in the content, eg <spen 
ex:content=".co-winner" ex:lens="id-of-desired-person-lens">

Daniel B. Giffin wrote:
> in the display of an item, i'd like some of the items that occur as
> its property values to be rendered "inline" (directly in the page)
> instead of as popups.
>
> (there was an earlier thread under the subject "Exhibit Handling
> Hierarchical JSON Data", and this could be one way to show some more
> of the graph's depth.)
>
> i think inline rendering could be specified in a lens by adding an
> attribute like "ex:inline" to an element that uses ex:content.
>
> for example:
>
> <div ex:role="lens" class="nobelist">
>     ...
>     <span ex:content=".co-winner" ex:inline="true">
>
> this would mean that the .co-winner property values should be rendered
> inline here.
>
> of course, there's some danger of writing recursive lenses that go on
> rendering dom nodes until your browser explodes.  (i think my example
> would do that.)  but i don't think that's a reason not to provide the
> facility.
>
> thoughts?
>
> (i might have a go at implementing this myself.  i'm eyeing
> Exhibit.Lens.prototype._constructDefaultUI().  it seems like it could
> be straightforward, although it looks like there are some subtleties
> concerning rendering an item more than once, and perhaps other stuff i
> haven't thought of.)
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to