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

Nested partial not processed #401

Open
lcsqlpete opened this issue Aug 5, 2022 · 4 comments
Open

Nested partial not processed #401

lcsqlpete opened this issue Aug 5, 2022 · 4 comments

Comments

@lcsqlpete
Copy link

lcsqlpete commented Aug 5, 2022

I have a situation where my main mustache template loads a partial and that partial loads a second partial.

The array passed to the main template includes the entries needed for the second partial but its code does not appear in the final output nor is there an error message. Ive checked all the obvious things like typos, file permissions, etc.

If I move the contents of the second partial into the first partial instead of loading the second partial, all works correctly.

I can't remember if I have attempted to do this in the past but I recently reorganized my partials template directory to contain a directory for each function within my website with all the partials for that function within it. My partials loader references my main partials directory and when I load a partial, it's in the form {{>directory/partial_name}}, not sure if that might cause this problem. All works fine with this structure when I load a partial directly from a main template, the problem only occurs when a partial loads another partial.

Any ideas what might be causing this?

@bobthecow
Copy link
Owner

I'm not sure I follow. Can you provide an example case so I can reproduce your issue?

@lcsqlpete
Copy link
Author

I'm trying to get the code into a comment but it ends up being horribly fromatted. I click the <> icon to insert the code, is there some other way to format code correctly?

@bobthecow
Copy link
Owner

If you make a block with three backticks (`) on a line by themself, then your code, then three backticks after the last line, it'll be posted exactly as you enter it.

@lcsqlpete
Copy link
Author

lcsqlpete commented Aug 25, 2022 via email

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

2 participants