[jifty-devel] Re: [Jifty-commit] r2305 - Template-Declare/lib/Template/Declare

Jesse Vincent jesse at bestpractical.com
Wed Dec 6 11:51:45 EST 2006


> 
> I think it is.  That is, we can sequence side effects just fine:
> 
>     my $x = 0;
>     div { p { $x++ } p { $x++ } p { $x++ } }
> 
> will still output 0/1/2, not 2/1/0.


Ok. An aside: for with(), we had a get_current_attr that we used to
extract the title for a page in Wifty. I believe we'll need to play
some small tricks to make it work.


> 
> The trick here is (again) context-driven katamari: Under scalar  
> context the block is suspended without
> actually executing, and the statement-level void context tag takes  
> care of executing the pending sequence
> in order.  If you're up for coding it tonight it'd be cool, otherwise  
> I'll do it over the weekend.

I suspect that I'm going to be rather...busy with presentation-style
documentation of the current state of the world ;/


> Thanks,
> Audrey

-- 


More information about the jifty-devel mailing list