GH-292 support template name in nested partials, need a stack to store the current name