maciejhirsz/ramhorns

Recursive partials cause stack overflow

Opened this issue · 1 comments

Example mustache:

test1.mustache

This is a test: {{> test2.mustache}}

test2.mustache

{{#value}}{{> test2.mustache}}{{/value}}{{^value}}Base case{{/value}}

This causes:

thread 'main' has overflowed its stack

Good catch!