On Jul 26, 3:23 pm, Nathan Weizenbaum <[email protected]> wrote:
> You can really only reproduce this with a layout, a template, and three
> partials, two of which are decided between randomly?

expected/actual at http://gist.github.com/155981

code that generates it at http://gist.github.com/155982

Using one partial is required for the behavior to appear. Directly
embedding the text from the partial under the script tag makes the
page render as expected.


>
> On Sun, Jul 26, 2009 at 1:43 PM, mpd
> <[email protected]<pope%[email protected]>
>
> > wrote:
>
> > On Jul 26, 11:56 am, Nathan Weizenbaum <[email protected]> wrote:
> > > On Sun, Jul 26, 2009 at 9:57 AM, mpd
> > > <[email protected]<pope%[email protected]<pope%[email protected]>
>
> > > > wrote:
> > > > Yet I do. If I don't use the helper, the logo never changes. I won't
> > > > pretend
> > > > I know why.
>
> > > This is something that warrants some debugging. Add some print statements
> > to
> > > check the output of the rand() call or something - poke around.
>
> > You're right about haml not caching. It looks like I may have been the
> > victim of the RNG choosing the same thing 10+ times in a row when I
> > first tested that. That's randomness I guess. Sorry for the false
> > alarm.
>
> > > expected/actual outputs 
> > > athttp://gist.github.com/155857(look<http://gist.github.com/155857%28look>for
> > >  the
>
> > > > form tags)
>
> > > I meant expected/actual outputs of the minimal test case that still shows
> > > the problem. It's hard to dig through all the extra markup/Javascript in
> > > there, and reducing it to the minimal case might help you find the bug.
>
> > I have stripped the code down to what's athttp://gist.github.com/155909
>
> > At this point the code that generates this is small enough to look at,
> > so that's athttp://gist.github.com/155911
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to