# File lib/webby/renderer.rb, line 302 def _track_rendering( path ) loop_error = @@stack.include? path @@stack << path @_bindings << _binding if loop_error msg = "rendering loop detected for '#{path}'\n" msg << " current rendering stack\n\t" msg << @@stack.join("\n\t") raise ::Webby::Error, msg end yield ensure @@stack.pop if path == @@stack.last @_bindings.pop end