Hello,

I have a strange problem in a haml template where a begin/rescue
clause works properly if I jump into the debugger during it - but not
if I do not.

Here is the code:

    - begin
      - debugger
      = render(:file => @site.custom_template('/menu'), :locals =>
locals)
    - rescue
      = render(:file => 'templates/menu', :locals => locals)

The template path does not exist, so the rescue is supposed to fire.
As long as the debugger statement is there, then when I hit "continue"
in the debugger, the rescue fires and the other render succeeds.

If I remove the debugger statement, suddenly I just get a blank screen
when hitting the same URL. It is as if this rescue is catching the
exception, but not executing its code.

I'd appreciate any pointers.

--~--~---------~--~----~------------~-------~--~----~
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