Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix stack overflow error #7114
I found that when a circular reference existed in template "include" function, an endless loop happened in rendering until stack overflow.
My solution is recording the name which is included in a slice. Check the name when the next render comes, if it has been in the recorded slice, throw an error. If not, execute template and pop it out.