I am seeing what I think is a bug in Haml that only happens in production environments. In short, a simple helper like:
def pass_thru(&block) yield end works as I would expect in development mode, but in production mode, it seems to be yielding the outer block that contains the call to the helper, not the block indented underneath the call to the helper. However, writing that helper like this works fine: def pass_thru(&block) haml_concat(capture_haml(&block)) end I have created a bare-bones Rails app that demonstrates this, along with a README that describes more detail: https://github.com/scottwb/haml-block-bug Am I perhaps misunderstanding the use of `yield` in a helper being called from Haml? I am pretty certain that this technique worked with Haml 3.0 and earlier. Is there a better way to do what I am trying to do here? Thanks, -Scott -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.