[SVN] r5791 (Subversion)

Chris Thomas chris at cjack.com
Tue Oct 31 21:39:51 UTC 2006


On Oct 31, 2006, at 4:10 PM, Allan Odgaard wrote:

> On 31. Oct 2006, at 21:32, Chris Thomas wrote:
>
>> Dynamically sorting the status table by column (http://www.google.com/search?q=javascript+table+sorting 
>> ) would be nice. Defaulting to a particular sort order may be  
>> difficult because the script is intentionally designed as a  
>> streaming filter.
>
> Though now that it is based on ERb, the streaming functionality is  
> lost. Which means we should probably also switch to XML!?!
>
> Maybe though, if we want to keep the incremental rendering, we could  
> use threads to feed the ERb data supplier.

The streaming functionality works, to at least some degree. If it  
didn't, you'd be staring at a completely blank window much longer  
during status and (especially) updates.

ERb generates Ruby source code (replacing HTML with statements that  
append the HTML text to a string variable) from the RHTML file and  
then executes the source code to produce the final HTML. You just need  
to set up the ERb compiler class to publish the output to a stream  
instead of gathering the output into that variable. The code to do  
this is very small, but should be factored out of the format_status.rb  
into some utility file somewhere. It is strikingly non-obvious.

Chris



More information about the textmate-dev mailing list