Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion gives stack overflow #35

Open
capr opened this issue Oct 20, 2017 · 0 comments
Open

Recursion gives stack overflow #35

capr opened this issue Oct 20, 2017 · 0 comments

Comments

@capr
Copy link

capr commented Oct 20, 2017

The following code gives me stack overflow. Any idea why? Thanks.

local lustache = require'lustache'

local tree = [[
{{#files}}
	{{path}}
	{{>tree}}
{{/files}}
]]

local root = {
	path = '',
	files = {
		path = 'files',
		files = false,
	}
}

print(lustache:render(tree, root, {tree = tree}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant