class Mustache::Context

def mustache_in_stack

inside a Mustache object as a context, we'll use that one.
Find the first Mustache in the stack. If we're being rendered
def mustache_in_stack
  @stack.detect { |frame| frame.is_a?(Mustache) }
end